Commit graph

1662 commits

Author SHA1 Message Date
UnknownShadow200
ae379a85c0 You should always be able to place/delete blocks, unless they are overriden by SetBlockPermission. Fixes being unable to /b an lb/gb removed block. 2016-08-21 14:06:29 +10:00
UnknownShadow200
443c520bd0 Fix case where if uncompressed map size was longer than actual map volume, would cause the client to Mono to infinitely loop. (Thanks mhsjlw) 2016-08-20 10:38:33 +10:00
UnknownShadow200
874de2ce9b An invalid .ogg file should not crash the whole client. (Thanks JplaysClassic) 2016-08-20 10:04:19 +10:00
UnknownShadow200
f5a016fce0 Fix disconnected screen flickering on OpenGL backend. 2016-08-18 23:51:00 +10:00
UnknownShadow200
99018cc610 Fix the 'ClassicalSharp.exe needs to be in the same folder' message incorrectly showing when starting the client via terminal on non-windows from another directory. (Thanks MrGoober) 2016-08-18 10:24:10 +10:00
UnknownShadow200
202b6a99aa Microoptimise block redraw methods, makes things slightly faster when changing millions of blocks. 2016-08-17 14:08:43 +10:00
UnknownShadow200
466bd531cd Avoid unnecessary memory allocation in BlockDefinitionChanged. 2016-08-16 14:26:44 +10:00
UnknownShadow200
e39be25b3f Fix minor issue with ErrorScreen unnecessarily redrawing the button. 2016-08-16 12:14:43 +10:00
UnknownShadow200
6b2651b8fb Split up Utils.cs into Utils.cs and Utils.Math.cs, also use our own ToLower() method that does not make any extra memory allocations. 2016-08-15 20:00:57 +10:00
UnknownShadow200
4033dcff1a Avoid the temp mem allocation for reading compressed data in ZipReader. 2016-08-15 18:49:06 +10:00
UnknownShadow200
8c52ada595 Use named StringLength constant instead of hardcoding 64 everywhere, replace StringBuilder with StringBuffer. 2016-08-15 18:33:37 +10:00
UnknownShadow200
b3e0b8b32b Ensure that colours read from WoM http page have full alpha. 2016-08-15 16:59:09 +10:00
UnknownShadow200
a28d2a38fd Increase 'Connection timeout' threshold to 30 seconds, avoid StringReader and replace with our own ReadLine() method. 2016-08-15 16:43:55 +10:00
UnknownShadow200
25b8f453ad Remove a redundant foreach. 2016-08-15 15:30:19 +10:00
UnknownShadow200
bd1f2c9597 Oops we need to use SocketException instead of IOException now. 2016-08-15 13:22:55 +10:00
UnknownShadow200
0936dd7e50 Use raw socket receive/send instead of NetworkStream. 2016-08-15 13:18:46 +10:00
UnknownShadow200
ff4b1eb723 Avoid foreach wherever possible. 2016-08-15 12:57:25 +10:00
UnknownShadow200
b2ff1bb70e Fix being unable to use function keys in error screen. (Thanks WolfGangNS) 2016-08-14 10:00:49 +10:00
UnknownShadow200
a8b73a0e46 Switching to classic/classic+hax mode should not reset your 'use classic background' option. (Thanks JPlaysClassic) 2016-08-13 08:48:06 +10:00
UnknownShadow200
11a75d0231 Minorly optimise GdiPlusDrawer2D's string measuring function. 2016-08-06 17:47:44 +10:00
UnknownShadow200
0331311360 Increase network data reading frequency from 20 to 60 seconds when loading a map, this makes receiving map faster. (Especially on localhost and LAN servers, around half the time) 2016-08-06 15:39:03 +10:00
UnknownShadow200
38be2f192e Make ticking tasks code more extensible. 2016-08-06 15:06:20 +10:00
UnknownShadow200
ae5f379438 Fix client crash when using normalfast mode and on Intel OpenGL build. 2016-08-06 09:15:54 +10:00
UnknownShadow200
a73630432e Don't centre cursor when window is not focused.
Fixes cursor being moved to centre of client's window, when you are interacting with another application, and you finish joining another map.
2016-08-03 14:57:50 +10:00
UnknownShadow200
01cdeee0eb Reduce code duplication of SelectionBox and AxisLinesRenderer. 2016-08-03 14:40:32 +10:00
UnknownShadow200
344688ca8d Fix last commit. 2016-08-03 14:26:42 +10:00
UnknownShadow200
8b2f429a43 Now with less pointless code duplication for entity model code. 2016-08-03 14:07:56 +10:00
UnknownShadow200
0141b7140b Make ModelCache code nicer. 2016-08-03 13:53:15 +10:00
UnknownShadow200
17e2ee4398 Block break particles of fullbright blocks should render at full bright. (Thanks goodlyay) 2016-08-01 23:29:29 +10:00
UnknownShadow200
c283494e4b Fix changing shadow colour not rebuilding map bedrock sides (which uses shadow colour), thanks goodlyay. 2016-07-31 21:13:29 +10:00
UnknownShadow200
bd549f9462 Merge branch 'master' of github.com:UnknownShadow200/ClassicalSharp 2016-07-30 14:34:39 +10:00
UnknownShadow200
dd11147103 Successful/Failed update check method now redraw background first, avoids the ugly artefact of drawing text twice over each other. 2016-07-30 14:34:27 +10:00
UnknownShadow200
db2e9c7342 Non WebException errors when updating should not crash the launcher (Thanks DramaticLove), also now shows 'Update check failed' on the main screen when any exception occurs when checking for updates. 2016-07-30 14:29:18 +10:00
UnknownShadow200
e93102a97b Attempt to retrieve texture pack / terrain.png from texturecache folder in all 300/400 errors, not just for 304 not modified. 2016-07-28 12:39:31 +10:00
UnknownShadow200
d097af1cb0 Fix .cw files saving/loading custom blocks with max fog density when fog density is supposed to be none. 2016-07-27 19:57:50 +10:00
UnknownShadow200
4ffa029fa9 Start on (non-working) player push. 2016-07-25 13:03:29 +10:00
UnknownShadow200
cc92a2794e oldWidth/oldHeight is never used in the gui code, removed it. 2016-07-25 12:24:57 +10:00
UnknownShadow200
3fdda6ab92 Make TexturePackExtractor less hardcoded. 2016-07-25 12:22:10 +10:00
UnknownShadow200
7432413a77 Move gui code to a separate class. 2016-07-25 12:11:55 +10:00
UnknownShadow200
cbfcc01bbf Optimise weather rendering, part 1. 2016-07-18 18:21:37 +10:00
UnknownShadow200
9e90ef6ed5 Fix skybox orientation in forward third person camera. (Thanks 123DMWM) 2016-07-17 09:06:01 +10:00
UnknownShadow200
db86bee196 Fix error screen losing colour after context is lost. 2016-07-16 23:30:57 +10:00
UnknownShadow200
b86dd00e13 Fix F9 clock showing 0 mins when played for exactly 1h0m. (Thanks KawaiiCube) 2016-07-16 08:30:35 +10:00
UnknownShadow200
309ba45a5d Fix skybox orientation in forward third person camera (Thanks goodlyay). 2016-07-14 16:15:36 +10:00
UnknownShadow200
7be81bea37 Fix most of remaining compilation errors on android project type. 2016-07-14 11:29:54 +10:00
UnknownShadow200
0da70b91eb Use android-compatible 'is 32bpp bitmap' test. 2016-07-14 00:15:25 +10:00
UnknownShadow200
719d741a9b More fixups for android backend. 2016-07-13 22:48:28 +10:00
UnknownShadow200
02fc19e1e7 Fixup OpenGLES api for IGraphicsApi changes. 2016-07-13 22:26:43 +10:00
UnknownShadow200
ab9500bcd4 Permission values from 100 to 127 should also be treated as 'op permissions'. (Thanks Moosfet) 2016-07-13 22:05:41 +10:00
UnknownShadow200
a86d1233d0 Implement greedy meshing for advanced lighting backend.
Note this not 100% optimal, as it does not cover the case of a row of quads in half shadow (one side in shadow, other in sunlight). However, it performs greedy meshing when blocks are either fully in shadow or sunlight so this is much more optimal than before.
2016-07-12 22:31:19 +10:00