5349 Commits

Author SHA1 Message Date
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
UnknownShadow200
3861b0bd10 Give in to popular demand and also export ScheduledTask_Add
Also export Keybind_IsPressed
2020-06-13 13:12:35 +10:00
UnknownShadow200
c0545de38b Don't include Picking.h in Game.h 2020-06-13 11:23:08 +10:00
UnknownShadow200
9d68364781 Combine GameStructs.h into Game.h
Also breaks all plugin source code, sorry about that
2020-06-13 11:13:41 +10:00
UnknownShadow200
6f05953799 Less warnings when compiling with visual studio 2020-06-13 10:06:04 +10:00
UnknownShadow200
4951984b3f Move all gui scaling code out of Game.c/h and into Gui.c/h where it belongs 2020-06-13 09:33:52 +10:00
UnknownShadow200
d21756643c Chat 'log to disc' option should always be disabled in web client 2020-06-12 23:49:17 +10:00
UnknownShadow200
cde14930d7 Don't repeatedly dlopen OpenGL library when retrieving address for OpenGL functions 2020-06-12 22:34:01 +10:00
UnknownShadow200
76f25b78b0 Clickable chat/Tab autocomplete shouldn't work in classic mode (Thanks Goodly) 2020-06-12 19:11:28 +10:00
UnknownShadow200
d3ef93fc83 Add icon to 64 bit mac build 2020-06-12 00:32:07 +10:00
UnknownShadow200
3ea64a61d0 Generate a 64 bit mac icon file and fixup Window.m
64 mac build doesn't show icon quite yet, still WIP
2020-06-11 23:38:33 +10:00
UnknownShadow200
18fce97418 Fix normalfast render mode not disabling fog anymore 2020-06-11 22:59:10 +10:00
UnknownShadow200
8987e6b3e5 Remove unused Matrix_Orthographic method 2020-06-10 20:46:03 +10:00
UnknownShadow200
bbfcfba18a Tidy up readme somewhat 2020-06-08 21:14:49 +10:00
UnknownShadow200
680fd10daa Get rid of Mem_Alloc on both paths of Options_GetSecure 2020-06-08 19:25:26 +10:00
UnknownShadow200
07b78a00b1 Don't DPI scale announcement Y offset, fix announcement being at wrong position with different window heights (thanks igor725, fixes #670) 2020-06-08 09:44:47 +10:00
UnknownShadow200
5582f60237 fix android build not compiling with this one line life hack 2020-06-08 09:16:20 +10:00
UnknownShadow200
d1766b252d Don't throw an exception on 0 width/height canvas, addresses #669 2020-06-06 15:20:48 +10:00
UnknownShadow200
de833c3124 Now the game partially works if creating D3D9 device initially generates a lost device
Also removed some redundant gfx calls
2020-06-06 10:54:21 +10:00
UnknownShadow200
aec759153f Split up D3D9 device creation from Gfx_Init 2020-06-06 10:28:02 +10:00
UnknownShadow200
29a719d68b Fix failure at runtime with latest emscripten 2020-06-05 18:32:25 +10:00
UnknownShadow200
3a0354be8f Don't use '#window' target for registering emscripten html5 events,fixes one failure at runtime with recent emscripten. Addresses #667. 2020-06-05 17:49:46 +10:00
UnknownShadow200
4a4bf57ce9 Fix links in readme linking to wrong folder 2020-06-05 17:19:57 +10:00
UnknownShadow200
45c9a9236e fix spelling (thanks SpiralP) 2020-06-01 20:37:20 +10:00
UnknownShadow200
17cd3c9ea1 Fix makefile not compiling on netbsd, prefer cc instead of gcc in makefile 2020-06-01 00:22:02 +10:00
UnknownShadow200
d32070c27b Use unversioned libcurl/libopenal .so on BSD systems, addresses #663
Also partially fix clicking on links not opening browser on HaikuOS
2020-05-31 18:29:17 +10:00
UnknownShadow200
9dec053521 try to simplify some of the if/elif mess in Platform.c 2020-05-31 15:59:12 +10:00
UnknownShadow200
01572ae7af Remove Model_GetTexture, never even used 2020-05-31 15:35:07 +10:00