237 Commits

Author SHA1 Message Date
UnknownShadow200
e20f57dcb5 Style: Namespace everything. 2016-09-26 18:33:05 +10:00
UnknownShadow200
1839da07b4 Client: Reduce code duplication in Picking.cs 2016-09-22 15:50:45 +10:00
UnknownShadow200
7ff1575eff Android: don't bother compiling hotkeys code. 2016-09-15 12:15:58 +10:00
UnknownShadow200
a5df8cdbec Client: Don't accept CPE packets at all when CPE mode is disabled. 2016-09-15 12:09:18 +10:00
UnknownShadow200
49d16aa701 Style: Modularise protocol functions. 2016-09-15 12:02:19 +10:00
UnknownShadow200
0ab5ef4434 Rename INetworkProcessor to the more descriptive IServerConnection, since it does not necessarily actually use the network. 2016-09-11 12:52:00 +10:00
UnknownShadow200
da8ebc61b1 Fix last compile errors for android backend. 2016-09-11 12:45:23 +10:00
UnknownShadow200
59ee780aca Fix some of compile errors for android target. 2016-09-11 11:58:59 +10:00
UnknownShadow200
899b705e54 Less code duplication in Chibi model. 2016-09-06 11:57:08 +10:00
UnknownShadow200
43b3d5e921 Merge branch 'master' of github.com:UnknownShadow200/ClassicalSharp 2016-08-30 12:50:09 +10:00
UnknownShadow200
d837e52724 Better indentation 2016-08-30 12:49:24 +10:00
UnknownShadow200
91082328fc Merge branch 'master' of github.com:UnknownShadow200/ClassicalSharp 2016-08-28 13:52:12 +10:00
UnknownShadow200
83aaf4091d Should be using the 'lastmodified' provided for our own 'if modified since' header, fixes texture packs from some web servers always being redownloaded. (Thanks CookieNetwork) 2016-08-28 13:45:25 +10:00
UnknownShadow200
fd879b0b00 Fix HackControl resetting jump height to default of 1.2 blocks, not user's jump height on non -hax maps. 2016-08-26 16:53:04 +10:00
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
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
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
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
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
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
7432413a77 Move gui code to a separate class. 2016-07-25 12:11:55 +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
a4eb33dbfd Fix skybox (and other textures) being lost after clicking 'try to reconnect'. (Thanks 123DMWM) 2016-07-07 23:10:44 +10:00
UnknownShadow200
b732b8a58a Fix receiving handshake packet settings 'receivedFirstPosition' to false (thanks again opticalza), optimise skybox rendering to avoid unnecessary clear call. 2016-07-07 00:09:52 +10:00
UnknownShadow200
927ef5b2b6 Fix mistakes in handling when our own player name is different to username. (Thanks opticalza) 2016-07-05 15:32:13 +10:00
UnknownShadow200
29696560be Fix changing a colour code not changing colour in chat, only extended input widget. 2016-06-25 23:04:25 +10:00
UnknownShadow200
b2c642b8af Remove Block enum. 2016-06-11 15:29:45 +10:00
UnknownShadow200
b303330921 Log error if it occurs with Program.CopyFiles (not that it ever should). 2016-06-04 19:04:48 +10:00
UnknownShadow200
603fe097ff Fix only being able to define 5 hotkeys. 2016-06-03 17:52:56 +10:00
UnknownShadow200
9e17292a6b Include server name in chatlog title, don't include date for each entry in a chatlog file. Closes #209. 2016-06-02 15:32:31 +10:00
UnknownShadow200
ecb052a6b5 Fix compass strings in fCraft showing in regular chat. 2016-05-29 21:55:03 +10:00
UnknownShadow200
6c3f72c6c8 Reduce code duplication for classic and normal player list code. 2016-05-29 21:47:46 +10:00
UnknownShadow200
c4f1f69cbd Use a single tab list code base for both CPE ExtPlayerList and original tab list behaviour. 2016-05-29 21:37:38 +10:00
UnknownShadow200
cf5448e9ac Back colours now work with custom colours too. (Thanks goodlyay) 2016-05-27 11:10:12 +10:00
UnknownShadow200
ec773449a9 Use back colours for built-in colour codes, partially addresses #167. (Thanks FrostFox) 2016-05-26 12:38:38 +10:00
UnknownShadow200
4c0b6ea1d6 Use safer method of incrementing pointers. 2016-05-25 22:16:38 +10:00
UnknownShadow200
fba550f3c2 Use generic BlockChanged event instead of hardcoding behaviour in PickingHandler. 2016-05-21 15:06:38 +10:00
UnknownShadow200
9576ec39af Fix text not having yellow colour code prepended when id = 0xFF and server isn't using message types (Thanks andreja6). 2016-05-20 15:32:26 +10:00
UnknownShadow200
8052c944f2 Comment out custom model code (since it's unlikely to be worked on for a while) with block region so build output isn't polluted with pointless warnings - thanks Retatta. 2016-05-20 15:22:54 +10:00
UnknownShadow200
be28a782f5 Don't show CPE blocks unless the server supports them. 2016-05-16 18:04:42 +10:00
UnknownShadow200
a9172905cd Separate ResourceFetcher into ResourceFetcher and ResourceChecker. 2016-05-15 16:29:07 +10:00
UnknownShadow200
f7dafcde0e Make 'edit hotkey' menu nice, and consistent with rest of gui. 2016-05-15 00:04:45 +10:00
UnknownShadow200
109e5fc1a8 Render rain/snow in correct order. 2016-05-13 19:49:39 +10:00
UnknownShadow200
05a8f5f598 Finish EnvMapAppearance v3 (now EnvMapAspect to avoid breaking backwards compatibility.) 2016-05-12 17:50:45 +10:00
UnknownShadow200
e05c1a14ed More work on EnvMapAppearance v3. 2016-05-12 16:13:08 +10:00