UnknownShadow200
655a468439
X11: Log backtrace for unhandled X errors (Thanks chuyuanzheng3)
2020-12-25 23:10:29 +11:00
UnknownShadow200
93f3be957e
Move stuff like SKIN_SERVER into Constants.h to make it easier to rebrand the game
2020-12-25 15:25:38 +11:00
UnknownShadow200
ff404604c6
Webclient: Fix touch controls appearing on some windows laptops (Thanks fam0r)
2020-12-25 02:33:58 +11:00
UnknownShadow200
a8ff5c5b07
Try to fix iPad >= iOS 13 not showing touch controls by default
2020-12-25 01:28:42 +11:00
UnknownShadow200
45fb1d56ab
Add an undocumented option to turn off https
...
Obviously as this is a monumentally bad idea 99% of the time, don't document it or expose it in the GUI
2020-12-23 23:56:16 +11:00
UnknownShadow200
13dcf51f9f
Move FOV stuff into Camera module instead
2020-12-21 10:40:47 +11:00
UnknownShadow200
9aba62615d
Fix classic pause menu still showing empty quit game button
2020-12-21 00:01:25 +11:00
UnknownShadow200
6fe58feae6
Make the GUI code a little bit less ugly
2020-12-20 21:33:03 +11:00
UnknownShadow200
5801e7888d
Mobile: Add hotbar switching as an on-screen control
2020-12-20 14:45:50 +11:00
UnknownShadow200
c18fde0ef0
Mobile: Add delete/pick/place on-screen buttons
2020-12-20 13:46:35 +11:00
UnknownShadow200
91a1603ef0
Fix last commit not compiling
2020-12-20 12:00:58 +11:00
UnknownShadow200
3ec8644c69
Add Mem_Equals function
2020-12-20 11:52:25 +11:00
UnknownShadow200
32dbb2d51a
Merge pull request #769 from timgates42/bugfix_typo_request
...
docs: fix simple typo, requst -> request
2020-12-20 07:37:49 +11:00
Tim Gates
6b972d06af
docs: fix simple typo, requst -> request
...
There is a small typo in src/Http.c.
Should read `request` rather than `requst`.
2020-12-20 07:29:10 +11:00
UnknownShadow200
1597ed76d7
remove a little bit of unused freetype code
2020-12-20 00:08:58 +11:00
UnknownShadow200
4c5df56ca6
Mobile: Fix changing touch scale not updating immediately
2020-12-19 15:03:12 +11:00
UnknownShadow200
3f0a2686a9
Use String_AppendUtf8 instead of Platform_DecodeString for non windows platforms
2020-12-19 13:13:37 +11:00
UnknownShadow200
14de95774d
Mobile: Now touch controls scale partially works
2020-12-17 20:50:12 +11:00
UnknownShadow200
edae243721
Mobile: Add (disabled) button for setting scale of touch gui
2020-12-17 19:10:41 +11:00
UnknownShadow200
3e2004c5ee
Don't abort the game if encounter an invalid huffman code in fast decode loop
2020-12-17 18:28:44 +11:00
UnknownShadow200
71d7abe337
Quick fix for last commit making game crash when using tab list (Thanks get)
2020-12-16 22:14:03 +11:00
UnknownShadow200
a3d2d5405c
Don't crash game if server sends invalid huffman tables (Thanks Joseph)
2020-12-16 20:59:48 +11:00
UnknownShadow200
bc66ea9325
Always recreate gfx resources instead of just creating, should prevent any leak
2020-12-16 20:28:30 +11:00
UnknownShadow200
f8c3b2cff8
Fix ze buildbot
2020-12-16 07:36:07 +11:00
UnknownShadow200
86425cb6b1
Merge pull request #767 from UnknownShadow200/MinFetch
...
Webclient: Use manual XmlHttpRequest implementation
2020-12-16 07:25:50 +11:00
UnknownShadow200
408cb1726e
Webclient: Get 'download size for texture packs' to work in firefox for some sites at least
2020-12-16 00:06:04 +11:00
UnknownShadow200
adb314458e
Webclient: Change to 'website denied download or doesn't exist'
2020-12-15 07:49:51 +11:00
UnknownShadow200
8aeff27f5a
Webclient: Fix saying '0 error when downloading texture pack
2020-12-15 00:12:19 +11:00
UnknownShadow200
0bd713b666
Webclient: WIP on using XMLHttpRequest directly instead of Fetch library
2020-12-14 23:20:48 +11:00
UnknownShadow200
b325bf1686
Webclient: Fix skins/texture packs not downloading in firefox private browsing mode
2020-12-13 23:13:56 +11:00
UnknownShadow200
42c4e1c841
Webclient: Fix being unable to change controls in some browser versions
...
This was my fault for not implementing pressing buttons on mouse movement properly. Also fixes on Windows where if you pressed on a control and still held down left mouse for a bit, the game would set the control binding to LeftMouse.
2020-12-13 21:58:21 +11:00
UnknownShadow200
155e375f94
Stop exposing Pointer_SetPressed, as it is only supposed to be called from within Input.c so state remains consistent
2020-12-13 18:34:48 +11:00
UnknownShadow200
4f4a20e8ac
Mobile: Fix clicking Chat softlocking game
...
Also fix < wrongly being enabled on initial first page in touch onscreen controls menu
2020-12-13 18:18:04 +11:00
UnknownShadow200
bae3ae543d
Mobile: Fix softlock in touch controls menu, also make Hold/Tap buttons closer together
2020-12-13 18:07:21 +11:00
UnknownShadow200
cba3fd587b
Mobile: Move 'Chat' and 'Fog' into main touch menu instead of touch controls menu
2020-12-13 17:52:32 +11:00
UnknownShadow200
cfa8944d1a
Mobile: Make jump button slightly bigger
2020-12-13 16:30:59 +11:00
UnknownShadow200
abfad91560
minor code tidy up
2020-12-13 14:51:11 +11:00
UnknownShadow200
0d3a1dda46
Unify auto rotate group finding code
2020-12-13 11:43:53 +11:00
UnknownShadow200
f8e1df2e21
avoid 64 bit integer division in Stopwatch_ElapsedMilliseconds, ~200 lines less in webclient
2020-12-13 08:41:43 +11:00
UnknownShadow200
10c958eed9
Webclient: Make /client res [width] [height] actually wok properly
2020-12-12 20:56:25 +11:00
UnknownShadow200
2fd1e0538a
Webclient: Include a variable in try {} catch {} for locking escape key, fixes 'expected ( to start a catch target' (Thanks SteveHB)
2020-12-12 20:14:25 +11:00
UnknownShadow200
c027c96208
Release 1.2.3
1.2.3
2020-12-12 11:36:24 +11:00
UnknownShadow200
2e3a2ed08c
Fix stack overflow happening when the game fails to create the logs directory (Thanks Fantasy)
...
This was particularly annoying, because the game would immediately just close without showing the usual crash message box
2020-12-12 11:29:43 +11:00
UnknownShadow200
de98806ead
Release 1.2.2
1.2.2
2020-12-12 08:51:22 +11:00
UnknownShadow200
22e767fad3
Treat 0 byte memory allocations as 1 byte, don't crash game if allocating lighting heightmap fails (Thanks MrK)
2020-12-11 18:40:39 +11:00
Goodlyay
fc22220232
Remove unused variables
2020-12-09 23:19:35 -08:00
Goodlyay
9c4ce31386
New behavior for pick block:
...
If you are holding air and the block you're picking exists in your hotbar, your selector moves there instead of the block being brought to the air spot.
If auto rotate is on, when you pick an autorotate block, if a block from the same group already existed in your hotbar, it goes to that spot and replaces the old rotation variant with the new one you picked
2020-12-09 23:11:17 -08:00
UnknownShadow200
52032a5a21
Merge pull request #759 from UnknownShadow200/UploadingStuff
...
Add upload support for maps/texture packs to webclient
2020-12-10 08:35:08 +11:00
UnknownShadow200
df5e41ebf9
Fix error recreating D3D9 context crash. A big thank you to SpicyCombo for running a debug version of the game for an extended period of time to allow me to track down the cause.
...
The circumstances that cause this to happen are quite rare, which is why I had great difficulty getting it to occur myself. Approximate steps to cause this error are:
1) Do something that causes the Direct3D9 context to be lost for a long period of time, like running a fullscreen Direct3D9 game
2) Get the texture pack changed in ClassiCube while it's still running in the background (e.g. someone summons you to another map)
3) Now come back to this game
4) Gfx_RecreateContext gets called, triggering each subscriber to the ContextRecreated event
5) One of the first subscribers is the TexturePack component, which reload the texture pack (because of step 2). Sometimes this causes default.png to be changed, which will then cause the Gui to call OnContextRecreated on all the current screens/menus
6) One of the last subscribers is the Gui component, which causes the Gui to call OnContextRecreated on all of the current screens/menus
The problem is that step 5) and 6) means OnContextRecreated is called twice in a row without an OnContextLost, causing some D3D9 resources allocated in step 5) to get leaked, and hence crashing the game later with D3DERR_INVALIDCALL. So the solution is to change Screen_CreateVb to always try deleting the existing vb first before replacing, so that way it doesn't leak
2020-12-09 23:51:21 +11:00
UnknownShadow200
fb9757252b
Visual Studio: Always treat warnings 4716 (Function doesn't return a value) and 4013 (implicit function declaration) as errors
...
Easy to do by accident and is a mistake 99.5% of the time
2020-12-09 23:12:31 +11:00