245 Commits

Author SHA1 Message Date
UnknownShadow200
f0047be63c Style: Remove CommandReader class, move stuff from ClassicalSharp.TexturePack to ClassicalSharp.Textures 2016-10-17 17:15:24 +11:00
UnknownShadow200
d1d31e8db1 Style: Reduce parameters in WarningScreen 2016-10-17 16:17:07 +11:00
UnknownShadow200
390f3acd09 Merge branch 'master' of github.com:UnknownShadow200/ClassicalSharp 2016-10-15 08:58:02 +11:00
UnknownShadow200
dfd654cdb3 CPE: fix not implementing TextHotkey action correctly. (Thanks Hetal) 2016-10-15 08:57:36 +11:00
UnknownShadow200
cbad171dfa style: fix wrong comment 2016-10-13 16:45:51 +11:00
UnknownShadow200
25215c4b60 Client: Fix custom sprite blocks from last commit. 2016-10-05 11:14:14 +11:00
UnknownShadow200
ac1a6442a7 Core: Now resetting a custom block that overwrote a core block works properly now. Also fix texture pack not being reset in singleplayer when loading a level without one. 2016-10-04 14:09:20 +11:00
UnknownShadow200
c6f3ef0569 Client: Log http status code when failing to download from a url. 2016-10-01 20:10:26 +10:00
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