Alibek Omarov
178602ea1f
engine: fix loading map in Dark Future mod with broken mark surface id
2024-09-05 15:23:23 +03:00
Alibek Omarov
e18b61e041
Fixes for -Wformat=2 on 64-bit targets
2024-06-22 07:31:37 +03:00
Alibek Omarov
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
Alibek Omarov
4e2708c1ac
engine: bring back texture replacement
2024-06-11 06:16:26 +03:00
Alibek Omarov
5ab6979633
ref: move common quake sky cloud loading to the engine
2024-06-10 22:47:39 +03:00
Alibek Omarov
6255293dd4
engine: fix using OpenMP PHS generation under Visual Studio
2024-06-02 10:34:10 +03:00
Alibek Omarov
d59875f114
engine: common: for automatic wad precache to work, we need to count the real wad usage on dedicated
2024-05-30 06:18:15 +03:00
Alibek Omarov
e89191ed39
engine: common: automatically precache wad files required by loaded map
...
Makes it easier to host server with multiplayer maps and broken .res files.
2024-05-30 05:58:41 +03:00
Alibek Omarov
338399e622
engine: common: implement PHS calculation like in QuakeWorld/GoldSrc
2024-05-29 05:58:51 +03:00
Alibek Omarov
1545a49b4c
engine: client: only allocate debug hulls polygons when they're requested
...
* Make the appropriate changes in ref_gl
2024-05-29 05:41:47 +03:00
Alibek Omarov
3ca15250e8
engine: common: use Mod_PointInLeaf in Mod_GetPVSForPoint instead of traversing nodes manually
2024-05-29 05:41:47 +03:00
Alibek Omarov
6cbac51731
engine: common: add function for compressing visdata
2024-05-29 05:41:47 +03:00
Alibek Omarov
e310c666b1
engine: common: add phs flag to Mod_FatPVS, unused currently
2024-05-29 05:41:47 +03:00
Alibek Omarov
9150b770e4
engine: common: mod_bmodel: add function Mod_DecompressVisTo that will copy fat vis data into the provided buffer
2024-05-29 05:41:47 +03:00
Alibek Omarov
a6c2cfe89b
engine: avoid constants in Q_strncpy third argument, where possible
2024-05-06 14:27:26 +03:00
Alibek Omarov
75d476f9df
engine: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
46c61660cf
engine: expose world BSP version through world global structure
2023-12-15 07:37:40 +03:00
Alibek Omarov
40c9a2fb82
engine: make Mod_SampleSizeForFace accept const surface
2023-12-02 18:01:57 +03:00
Alibek Omarov
a41902bd46
engine: mod_bmodel: detect water textures by texture name like LoadSurfaces does
2023-10-31 21:52:00 +03:00
Alibek Omarov
4d7d592918
engine: mod_bmodel: completely get rid of global loadmodel pointer
2023-10-28 16:06:00 +03:00
Alibek Omarov
c5e91f299b
engine: mod_studio: reduce dependency on global loadmodel pointer, make it private for brush model loader
2023-10-28 15:38:40 +03:00
Alibek Omarov
cff276db71
engine: client: mod_dbghulls: reduce dependency on global loadmodel pointer
2023-10-28 15:35:20 +03:00
Alibek Omarov
30d1492b93
engine: remove Set/GetCurrentLoadingModel from RefAPI
2023-10-28 15:22:21 +03:00
Alibek Omarov
57499dea33
engine: server: static-ize sv_phys functions, set GAME_EXPORT attribute for PhysicAPI functions
2023-06-19 07:32:22 +03:00
Alibek Omarov
e7ece41ba0
engine: common: move model cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
ec2951cf45
engine: add size argument to COM_Default/ReplaceExtension calls
2023-04-26 05:20:45 +03:00
Alibek Omarov
8c7db8499f
engine: add size argument to COM_FileBase calls
2023-04-26 05:20:45 +03:00
Alibek Omarov
b16fa8eddc
public: remove Q_strcat and Q_strcpy, and patch the code that uses it
2023-04-26 05:20:45 +03:00
Alibek Omarov
f67b97e63c
engine: common: mod_bmodel: remove useless copy before Q_strnlwr, as Q_strnlwr already copies string
2023-04-15 04:08:40 +03:00
Alibek Omarov
4d4162336a
engine: common: mod_bmodel: apply code style fixes to match existing code, for consistency
2023-04-11 03:11:23 +03:00
Jonathan Poncelet
372514151d
engine: common: mod_bmodel: Fixed default texture name check
...
REF_DEFAULT_TEXTURE defines the canonical name, so is used
instead of a string literal.
2023-04-11 01:41:20 +03:00
Jonathan Poncelet
6c9ce478a9
engine: common: mod_bmodel: Fixed Con_Printf warnings
...
Some formatting characters did not match up with their
values.
2023-04-11 01:41:20 +03:00
Jonathan Poncelet
78555ab125
engine: common: mod_bmodel: Tidied texture loading procedure
2023-04-11 01:41:20 +03:00
Alibek Omarov
b0c71c598f
engine: common: remove unused Mod_AmbientLevels
2023-04-03 04:33:19 +03:00
Alibek Omarov
e664e80b27
engine: common: mod_bmodel: replace few more obvious va calls by temp buffer and Q_snprintf
2023-03-13 06:25:57 +03:00
Alibek Omarov
116a605248
engine: common: replace some obvious va uses by temp buffer and Q_snprintf or equivalent code
2023-03-13 06:08:36 +03:00
Alibek Omarov
80507b2eca
engine: mod_bmodel: fix const qualifier discard warning
2023-01-04 17:55:59 +03:00
Alibek Omarov
d047dfc319
engine: add few lines in mod_bmodel back, got removed in previous commits accidentally
2023-01-03 18:26:18 +03:00
Alibek Omarov
13ed2742b2
engine: check for bsp30ext before trying to use extended clipnodes, fix 32-bit clipnodes check
2023-01-03 07:50:50 +03:00
Alibek Omarov
df1c9a5029
engine: simplify blue shift swapped lump check, change TestBmodelLumps to avoid reading past mod buffer
2023-01-03 07:01:39 +03:00
Andrey Akhmichin
444e08f59a
engine: common: simplify strings operations.
2022-12-21 03:26:41 +03:00
Alibek Omarov
754d55beef
engine: common: fix for HLBSP extended clipnodes hack when BSP2 support is enabled
2022-12-13 11:34:42 +03:00
Alibek Omarov
81b01ac561
engine: common: remove NaN check, it's mostly useless on text data
2022-05-09 05:01:20 +03:00
Alibek Omarov
771c359ed0
engine: common: make blue-shift map detect more robust
2022-05-09 05:01:20 +03:00
SNMetamorph
edc171be04
engine: common: fixed lightmap shift again
2022-02-28 19:56:28 +03:00
SNMetamorph
24ea8fba4b
engine: common: fixed lightmap shifting caused by insufficent precision in Mod_CalcSurfaceExtents
2022-02-28 16:54:28 +03:00
Alibek Omarov
0963e05716
engine: restore lumps after swapping them for blue shift maps
...
Mod_TestBmodelLumps may modify srclumps data, which is essential for
brush model loader. BlueShift maps have swapped lumps for some reason
Restoring them to default is fix for now
2021-12-20 18:12:36 +03:00
Alibek Omarov
e0efe0aa23
engine: remove emboss filter. There seems no real use for it.
2021-12-07 09:09:45 +03:00
Alibek Omarov
24edcf7d9e
engine: swap lumps back after they were swapped for blue-shift maps
2021-11-29 16:28:42 +03:00
Alibek Omarov
29a8bfb1dc
engine: common: fix ParseFile calls
2021-10-08 17:31:32 +03:00