5226 Commits

Author SHA1 Message Date
UnknownShadow200
54a223f691 Add Gfx_UpdateTexture in preparation for updating textures improvements 2020-07-05 14:15:05 +10:00
UnknownShadow200
5245c317ee Avoid requesting pointer lock then exiting pointer lock when pressing escape to open pause menu
This should further reduce chance where cursor gets stuck down
2020-07-04 16:53:13 +10:00
UnknownShadow200
273473c922 A bug in chrome 83 (crbug.com/1091169) means that if a pointer lock request is made when a pointer lock is already pending, it fails and the cursor is stuck as normal and visible. Not even reloading the tab can save you now. So always defer requests to enable pointer lock to next input event, to reduce chances of this happening. 2020-07-03 21:11:56 +10:00
UnknownShadow200
fab91996d3 Add faster EntryList_Load alternative that doesn't check for duplicate keys. On my machine with 492 fonts, reduces loading fonts list time at startup from ~7 ms to ~1ms. 2020-07-02 21:38:50 +10:00
UnknownShadow200
6a1235f6a9 Use separator argument instead, eliminate need for separate EntryList struct 2020-07-01 23:06:17 +10:00
UnknownShadow200
669dac1738 fix last commit not properly reloading changed options from disc, whoops 2020-07-01 21:23:28 +10:00
UnknownShadow200
278e7c70cd Remove path field from EntryList struct, move to argument for Load/Save 2020-07-01 21:12:14 +10:00
UnknownShadow200
925346278d Only load d3d9.dll when actually needed. This way the launcher will still work even when you're missing Direct3D9. 2020-06-30 23:44:25 +10:00
UnknownShadow200
d805d33d7d For SDL backend, reset graphics context if get a SDL_RENDER_DEVICE_RESET event 2020-06-30 12:15:10 +10:00
UnknownShadow200
259a78b911 remove unused freetype glyph copy code 2020-06-29 17:34:39 +10:00
UnknownShadow200
8c16ce5d29 Fix CC_BUILD_GLMODERN including wrong file 2020-06-28 23:13:23 +10:00
UnknownShadow200
3b6c7ce7f4 Fix fog button in extended touch controls menu not even working at all 2020-06-28 18:48:56 +10:00
UnknownShadow200
c6dc091b2f Fix having to click chat/inventory/fullscreens buttons in extended touch controls twice to get them to work (Thanks SpicedSoup) 2020-06-28 18:17:08 +10:00
UnknownShadow200
2484ff0117 Add support for cross compiling to windows for ARM. No clue if it actually works at all though. 2020-06-28 00:01:27 +10:00
UnknownShadow200
e29e8e1ae9 Make GradientBlend a bit faster because it doesn't need to clamp each pixel. Also cleanup naming in Logger.c 2020-06-27 23:04:55 +10:00
UnknownShadow200
c346d8dc0c Fix custom particles that spawn inside a block appearing for a few frames before disappearing in first PhysicsTick call (Thanks Goodly) 2020-06-27 19:44:48 +10:00
UnknownShadow200
03030afe8a Properly delete entity skins on context lost. So now the game should completely handle context lost/restore on webgl/opengl es backends. 2020-06-27 09:32:10 +10:00
UnknownShadow200
0690c91865 For gfx backends that don't manage textures, properly free atlas 1D textures on context loss, and reload texture pack on on context restoration 2020-06-26 23:25:38 +10:00
UnknownShadow200
dcc6a12946 Make Textures a component too, move some texture specific out of Game.c and into TexturePack.c 2020-06-26 22:37:14 +10:00
UnknownShadow200
664428682c Split up TexturePack into Animations and TexturePack (they end up being about equal lines of code anyways), remove a bit more of unused freetype code 2020-06-26 21:43:02 +10:00
UnknownShadow200
f476eee0c1 WIP on deleting some managed textures when context is lost but managed textures is not actually supported by graphics api 2020-06-26 11:39:54 +10:00
UnknownShadow200
b8794585e4 Fix web client not compiling on really old emscripten versions such as 1.38.21 2020-06-25 23:45:56 +10:00
UnknownShadow200
8fd37cd31e Make custom mipmaps support internal, add bool for whether managed textures are actually supported 2020-06-25 22:53:22 +10:00
UnknownShadow200
7c22112aa3 considering that it is always half way through 2020, probably should update copyright year to 2020 2020-06-25 20:44:38 +10:00
UnknownShadow200
4a329d6302 Fix picking the block on border outside map accidentally extending infinitely (Thanks 123DontMessWitMe)
E.g. if you are standing at -25,1,1 and looking towards -25,1,-1, the block will still be incorrectly highlighted
2020-06-25 20:04:23 +10:00
UnknownShadow200
6332bc55e4 Try 'Slate for OnePlus' font before 'Roboto', fixes launcher text appearing as boxes on some android 10 devices (Thanks Odd0002) 2020-06-25 12:55:15 +10:00
UnknownShadow200
e70362a46e Fix vcxproj defaulting to XP compatible toolset for 64 bit 2020-06-24 22:17:15 +10:00
UnknownShadow200
97260d84a3 If OpenAL initialisation fails, attempt to return OpenAL specific error code before generic 'openal failed' result code 2020-06-24 18:38:51 +10:00
UnknownShadow200
6b4342d2c5 Ignore key character text input on 64 bit mac backend while Cmd is pressed, fixes 'c' and 'v' appearing in chat when copy/pasting. (Thanks Ally) 2020-06-24 11:22:41 +10:00
UnknownShadow200
730eadf47b Cleanup CustomModel packet reading code, pretty sure this doesn't break anything 2020-06-23 17:06:27 +10:00
UnknownShadow200
2f4dae3295 Allow using 32x64 etc skins too. Really intended for custom models though 2020-06-22 17:59:02 +10:00
UnknownShadow200
c08918436d Export SelectionsAdd/Remove per request 2020-06-22 14:38:16 +10:00
UnknownShadow200
f41ff742bd Fix wrong declaration for LoadingScreen_MapLoaded which broke web client multiplayer. Major major whooooppss. 2020-06-21 00:41:51 +10:00
UnknownShadow200
c3b00378df minorly clean up code for closing loading screen 2020-06-20 21:56:54 +10:00
UnknownShadow200
ada9caef3e Fix MSVC project not compiling due to missing GameStructs.h, don't expose some private functions in .h files 2020-06-19 22:23:07 +10:00
SpiralP
e95f7767d4
add a firstPersonArm flag for each CustomModelPart, remove hideFirstPersonArm (#681) 2020-06-19 13:50:26 +10:00
UnknownShadow200
e0fe8f702b Fix after resizing game on 64 bit mac build, the left mouse button is stuck down (Thanks doberman411) 2020-06-18 20:12:33 +10:00
UnknownShadow200
a586619777 Fix caps lock not working and mouse getting stuck down if released outside window on 64 bit mac build (Thanks doberman411) 2020-06-18 13:36:30 +10:00
UnknownShadow200
e7707c5593 Simplify sound loading code a bit 2020-06-17 21:03:41 +10:00
UnknownShadow200
e87390325e Avoid redundant fields in CustomModel 2020-06-17 19:22:33 +10:00
UnknownShadow200
b9f2213aa6 Cleanup Models code, part 1 2020-06-17 18:11:04 +10:00
UnknownShadow200
41cc4b2149 Less use of String_FromReadonly 2020-06-17 12:12:42 +10:00
SpiralP
8639e4ff96
Add Custom Models (#671)
* wip

* firstperson arm

* add error messages

* back to 64 max parts

* bad fix for correct rotation order

* don't free on reset

* rotation order

* add hideFirstPersonArm, uScale, vScale

* use u/vScale

* read raw floats

* use hideFirstPersonArm

* fix for pony/moremodels plugins setting lower verts than custom models wants

* fix fullbright

* comment rotation order

* fix arm drawing
unk ❤️

* fix my warnings

* fix unk warnings

* rename ext to CustomModels, add packet RemoveModel

* add Model_Unregister logic

* move code into Model.c, target gnu89

* move stuff around

* undo some stuff

* undo self changes

* typo fix

* add spin animation, and a new animModifier field in network packet

* add to front of models linked list to override existing models

* cleanup

* more "ISO C 89" support

* add extra reserved bytes to packet

* remove fmod, remove unused variable

* move CustomModel_FreeAll to Model.c

* wip splitting parts into own packet, need to convert to not use BoxDesc soon

* i think it works

* be c89

* convert to use Quad2 funcs, optimize CustomModelPart's alignment

* remove unused defaultTex

* make args match params

* use extern for custom_models
2020-06-16 21:21:12 +10:00
UnknownShadow200
5f7f2cd94a Add superior BoxDesc_XQuad2/YQuad2/ZQuad2 that just take U/V arguments directly 2020-06-16 18:48:38 +10:00
UnknownShadow200
ca361b7f0b Remove unused freetype str hash code and rest of property set code 2020-06-15 21:22:54 +10:00
UnknownShadow200
90f2a9c055 Remove unused propertyget/set stuff 2020-06-15 20:59:48 +10:00
UnknownShadow200
c44153a50b Simplify protocol.c for when string arguments don't need to be variable
Also add missing document. in hosting-flask.md, fixes #679 (Thanks ToonDragon)
2020-06-15 17:44:18 +10:00
UnknownShadow200
2b83dbc32a Fix clipboard not working with IE11 in webclient 2020-06-14 21:06:51 +10:00
UnknownShadow200
2052ffd3d8 fix wrong typedef declaration for Thread_StartFunc 2020-06-13 19:49:12 +10:00
UnknownShadow200
c8cb0b790b 1.1.7 release 1.1.7 2020-06-13 13:22:20 +10:00