5226 Commits

Author SHA1 Message Date
UnknownShadow200
33e126f8c5 And fixup overlays/gen level to use Layout method (last of the simple cases) 2020-08-16 16:34:10 +10:00
UnknownShadow200
d20962b804 Move more gui screens to separate Layout method 2020-08-16 15:37:35 +10:00
UnknownShadow200
6090df4690 Release 1.1.9 1.1.9 2020-08-16 12:41:44 +10:00
UnknownShadow200
51cf84e45e Improve MFA UI a bit I guess 2020-08-16 12:28:10 +10:00
UnknownShadow200
dcd1f6be71 Move chat screen/list screens layout code to Layout method 2020-08-16 11:40:27 +10:00
UnknownShadow200
74c7e4f13d Initial support for entering multifactor authentication code (still WIP) 2020-08-16 10:38:11 +10:00
UnknownShadow200
6f517e6355 Instead of always showing 'unknown error occurred' when login error isn't wrong username/password, show the actual error message 2020-08-16 09:14:37 +10:00
UnknownShadow200
69d8500f25 Always call Layout when adding screen to gui, simplify layout for loading/disconnect screens 2020-08-15 22:55:41 +10:00
UnknownShadow200
59eea41404 Simplify Platform_Encrypt to avoid unnecessary memory allocations
also remove xor fallback for windows
2020-08-15 17:20:13 +10:00
UnknownShadow200
48cc59cfa4 inflate code style cleanup 2020-08-14 20:32:07 +10:00
UnknownShadow200
3f69fa483f Don't reset timestamps in CheckUpdateTask_Run
This way, if we successfully downloaded builds.json initially, but get a http error the next time try to download it, the original latest dev/release build timestamps are still used, instead of being reset to 0.
2020-08-14 10:37:42 +10:00
UnknownShadow200
54c32e29e8 Remove dividing .cw spawn by 32 when spawn is outside map backwards compatibility patch
This means if your position is outside the map and you save the map, when you load the map, you appear at this position again, instead of the position divided by 32.

This was a workaround for ClassicalSharp maps saved before 0.98.6. Considering that was relased on Feb 2016, I think it's an acceptable loss that a few maps from waayyy back then have the wrong spawn when loaded.
2020-08-13 22:28:52 +10:00
UnknownShadow200
2016b4ef7f 1 less error when compiling as C++
also fix mistake in readme (thanks kylbert)
2020-08-12 21:48:19 +10:00
UnknownShadow200
7c977a275b Allow plugins to modify protocl packet sizes/handler functions 2020-08-09 14:36:26 +10:00
UnknownShadow200
223eed4933 fix if you have custom jump height and disconnect from server that doesn't use hackcontrol, your jump height is reset to 1.233 on rejoining the server 2020-08-09 13:15:24 +10:00
UnknownShadow200
7a01d01f81 cleanup naming of some methods in Input.c 2020-08-08 23:39:57 +10:00
UnknownShadow200
11c252ad5e when server removes a hotkey, restore to user's hotkey (if set) instead of leaving it empty 2020-08-08 18:46:27 +10:00
UnknownShadow200
b6261041f6 Fix being too much padding between entries in launcher servers list (thanks Daeslender) 2020-08-06 17:41:32 +10:00
UnknownShadow200
7abb4e8819 Release 1.1.8 1.1.8 2020-08-06 08:36:20 +10:00
UnknownShadow200
7694980c0f Readd the call to XSetWMNormalHints I removed to fix appearing at wrong position with some window managers 2020-08-05 19:58:39 +10:00
UnknownShadow200
a8020928a4 Fix variable indicating whether server supports BlockPermissions not getting reset on disconnect 2020-08-05 19:07:43 +10:00
UnknownShadow200
ac8342a480 Fix block permissions not resetting on disconect (Thanks cybertoon) 2020-08-05 14:52:47 +10:00
UnknownShadow200
49a3ef6139 Don't allow zooming out third person camera if flying is disabled (thanks goodly) 2020-08-05 12:11:41 +10:00
UnknownShadow200
68368e6ba4 fix if you change sounds volume multiple times, you get spammed with 'cannot have more than 10 sounds in a group' (Thanks Kylbert) 2020-08-05 11:44:18 +10:00
UnknownShadow200
5895a5f999 don't forget file extension when saving 2020-08-04 00:37:12 +10:00
UnknownShadow200
87b5a97305 Try to fix taking screenshots on IE11 crashing the game 2020-08-04 00:26:47 +10:00
UnknownShadow200
4f01636a50 F12 now downloads a screenshot for the web client 2020-08-03 23:33:27 +10:00
UnknownShadow200
68f4144cc9 Add module.saveBlob function for web client
Also try to avoid terminating game when invalid huffman code is read when inflating data
2020-08-03 23:12:58 +10:00
UnknownShadow200
4072b62439 if plugin filename ends with _32, ignore it on 64 bit OS (and vice versa) 2020-08-02 12:44:28 +10:00
UnknownShadow200
dcf1b9a49e If the server sends corrupted compressed map data, try to disconnect the game instead of outright crashing 2020-08-02 10:49:04 +10:00
UnknownShadow200
c968d14a75 Expose gui to plugins per request 2020-08-01 15:10:49 +10:00
UnknownShadow200
e13755b1d9 avoid including bitmap.h in h files 2020-08-01 12:28:00 +10:00
UnknownShadow200
e221e9f343 Bitmap shouldn't be typedefed 2020-08-01 12:19:58 +10:00
UnknownShadow200
f2cfdb372d Define custom model parts as they arrive, instead of buffering them all into memory first
For 64 bit, reduces size of custom_models array from 802 to 465 kilobytes
2020-08-01 11:07:48 +10:00
UnknownShadow200
4cf4db4607 Simplify DefineModelPart packet reading 2020-08-01 09:33:45 +10:00
UnknownShadow200
2c191a847b Scale up launcher title with DPI, make it have correct Y offset when drawing it as bitmapped text 2020-07-31 21:09:51 +10:00
UnknownShadow200
8e0dc6db08 Fix some textures persisting from old texture pack on server software that only sends packet with new url, and doesn't send an additional packet with empty url first (Thanks Goodly) 2020-07-31 16:55:13 +10:00
UnknownShadow200
4534e647e9 For auto join server hash, also try to automatically sign in the user too 2020-07-31 12:07:24 +10:00
UnknownShadow200
0da489e82a fix very rare case where launcher process wouldn't terminate after closing the window 2020-07-31 11:46:33 +10:00
UnknownShadow200
fbbe626a97 Fix launcher flags offset and input widget expand at high DPI
Also avoid double checking file existence when extracting launcher texture pack
2020-07-30 23:06:43 +10:00
UnknownShadow200
559ae5ceac Mostly make launcher servers table DPI scale 2020-07-30 22:44:27 +10:00
UnknownShadow200
fdf92e047b Launcher input widget DPI scales properly 2020-07-30 13:20:33 +10:00
UnknownShadow200
7e7bfb00da fix always crashing on close 2020-07-29 18:17:41 +10:00
UnknownShadow200
4dc05d82f5 Change Launcher screen MakeInstance methods to call SetScreen directly instead of returning pointer 2020-07-29 18:01:39 +10:00
UnknownShadow200
5bf63e79a3 Use single Event_Register_ macro instead of Event_Register_XYZ macros
The Event_Register_XYZ were all just defined to Event_Register_Macro anyway, completely ignoring the type of the arguments given. Therefore it's better to just give a single type unsafe Event_Register_ macro, rather than misleading the user into thinking they were using type safe macros
2020-07-29 17:45:59 +10:00
UnknownShadow200
fd28ce7b27 Add single Event_UnregisterAll method, instead of having code everywhere calling Event_UnregisterXYZ 2020-07-29 11:48:30 +10:00
UnknownShadow200
9afde7d0aa .. and fix 'position:' textatlas leaking. Finally no more crashing. 2020-07-28 19:45:21 +10:00
UnknownShadow200
4deba8e0d4 Fix index buffer leaking if direct3d9 device creation initially failed
Still crashes, but progress at least
2020-07-28 18:59:53 +10:00
UnknownShadow200
386ce44cc8 Fix android makefile to compile, add readme for doc/misc folder 2020-07-27 22:09:37 +10:00
UnknownShadow200
aa85374894 If an attempt is made to extract texture pack while context is lost, add code to reload texture pack when context is recreated
The most noticable way this issue manifests is when you try to start the game (direct3d9) while a fullscreen application is already running. This causes creating the device to initially fail, but when the context is later recreated (because you toggled out of the fullscreen application), all the textures would appear white because the initial texture pack had attempted to load while context was initially lost.

Of course, the game still crashes when you try to resize the window next (or something else that causes context to get lost), but progress still.
2020-07-27 20:38:41 +10:00