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
2eb8f88a20
engine: move attenuation none sound spatialize fix to bugcomp mode, as Xash native games use this
2024-09-05 13:50:15 +03:00
Alibek Omarov
950d210ec5
Revert ABI2, it wasn't meant to end up in master branch.
2024-09-05 04:31:50 +03:00
Alibek Omarov
ad2191333d
engine: add _st64 prefix to load abi2 binaries
2024-09-05 01:28:55 +03:00
Alibek Omarov
ff3d91ceb4
engine: add aaaa.mentality.rip:27011 master server
2024-08-28 19:56:41 +03:00
Alibek Omarov
5777431577
engine: common: insert spaces between arguments in echo command
2024-08-22 16:45:42 +03:00
Alibek Omarov
cd86f80203
engine: common: make MSG_WriteOneBit inlined, as it's usually called with literal argument
2024-08-22 12:51:47 +03:00
Alibek Omarov
9a432a5a13
common: rewrite cvardef.h from scratch based on Quake definitions
...
* unify cvar.h and cvardef.h, enable private definitions only for refdll and engine
* add FCVAR_REFDLL for easier RefDll cvars cleanup
2024-08-21 12:18:06 +03:00
Alibek Omarov
842e494fa6
common: add macro for simultaneously checking data type size for ILP32 and LP64
2024-08-21 12:00:35 +03:00
Alibek Omarov
bd2a44dbdd
engine: common: fix fragbuf_t definition so it has true standard flexible array member
2024-08-10 13:46:00 +03:00
Alibek Omarov
3b3f057f6f
engine: common: fix winding_t definition so it has true standard flexible array member
2024-08-10 13:46:00 +03:00
Владислав Сухов
75c5e9cfa7
engine: bump engine version to 0.21
2024-08-09 12:41:47 +03:00
Alibek Omarov
f0b4c42c68
engine: common: faster and simpler Netchan_OutOfBand
2024-08-08 04:37:16 +03:00
Alibek Omarov
6bfa525080
engine: common: faster and simpler MSG_WriteString
2024-08-08 04:35:55 +03:00
Alibek Omarov
8994f079a5
engine: common: don't uselessly copy data in Netchan_OutOfBound when playing a demo
2024-08-07 02:28:58 +03:00
Alibek Omarov
b2d184cfa5
engine: common: add unit tests for net_buffer functions
2024-08-07 02:28:13 +03:00
Alibek Omarov
2a6862ceb9
engine: soundlib: fix buffer overflow with truncated WAV files containing CoolEdit cue mark
2024-08-06 08:41:36 +03:00
Alibek Omarov
4420ffd49e
engine: fix buffer overflow in Sys_PrintLog
2024-08-03 11:27:45 +03:00
Alibek Omarov
8be3bdac5d
engine: client: add command listdemo to show information about demo file (isn't really useful, just reads file header)
2024-08-03 11:01:17 +03:00
Alibek Omarov
d6e77e531d
engine: fix memory leak in netchan
...
frag_message_buf wasn't always freed alongside with fragbuf_t
instead of ensuring frag_message_buf being freed, I turned it into
a flexible array member
2024-08-03 08:40:33 +03:00
Alibek Omarov
712b354421
engine: common: replace same struct type memcpys by assignments
2024-07-31 00:06:22 +03:00
Alibek Omarov
a7d63649f8
engine: add checks to verify resource_t, customization_t and HPAK data structs sizes
2024-07-30 15:25:20 +03:00
Alibek Omarov
7bb5175084
Turn downloaded/ and custom/ into com_strings.h definitions, like sound path and saves path
2024-07-30 15:25:20 +03:00
Alibek Omarov
f4a3b8571d
engine: fix inverted check in debug log output
...
Why there is even this check in the first place???
2024-07-29 04:48:21 +03:00
Alibek Omarov
e70f9a67b8
engine: host: always enable console for dedicated
2024-07-26 11:08:34 +03:00
Alibek Omarov
6120c0daec
engine: print command line args alongside developer level during init
2024-07-22 22:15:56 +03:00
Alibek Omarov
7a469fb481
engine: always use original player hulls for pmove trace, because mods can write invalid data in pmove->player_{mins,maxs}
2024-07-21 11:01:18 +03:00
Alibek Omarov
0f8f35b415
engine: fix alias model loading
2024-07-21 04:15:56 +03:00
Alibek Omarov
a133b1c2a9
engine: remove unused texFlags argument in Mod_LoadSpriteModel
2024-07-21 03:04:21 +03:00
Alibek Omarov
024a335505
engine: move wcon definitions to platform.h
2024-07-21 02:06:51 +03:00
Alibek Omarov
6d98d2c7c3
engine: check XASH3D_GAME if -game argument wasn't found, do not override default base directory
...
Clarify that `--gamedir` configure option and `XASH_GAMEDIR` macro specify base directory
2024-07-21 01:04:50 +03:00
Alibek Omarov
85dfaaa2c2
engine: imagelib: add LUMP_TEXGAMMA palette kind to only pass HL textures through texgamma, not Quake
2024-07-19 06:34:51 +03:00
Alibek Omarov
56464d3291
engine: when colorizing standard output, use bold text, as it makes it more visible (especially with black text)
2024-07-17 22:53:35 +03:00
Alibek Omarov
aed96ee753
engine: common: reduce large static arrays amount for logging by adding generic function accepting va_list
2024-07-17 22:27:20 +03:00
Alibek Omarov
17950fec3e
filesystem: make engfuncs const
2024-07-16 15:23:03 +03:00
Alibek Omarov
09a7585643
engine: soundlib: super micro-optimization, reallocate buffer in Image_Copy rather than allocating and copying
2024-07-16 05:11:06 +03:00
Alibek Omarov
a09084ceba
engine: imagelib: super micro-optimization, reallocate buffer in Image_Copy rather than allocating and copying
2024-07-16 05:10:29 +03:00
Alibek Omarov
147e5dceff
engine: request SDL to ungrab mouse before signaling debugger to stop
2024-07-16 05:09:02 +03:00
Alibek Omarov
3510afd30b
engine: zone: allow moving allocation from one pool to another during realloc
2024-07-16 05:06:44 +03:00
Alibek Omarov
d3586c2143
engine: soundlib: add support for converting stereo to mono and back, attempt to simplify conversion boilerplate
2024-07-16 05:05:50 +03:00
Alibek Omarov
9b86c3127a
engine: properly disconnect from online game when loading local game (save, newgame or a level)
2024-07-10 12:32:33 +03:00
Alibek Omarov
708c691cdb
engine: fix XASH_DEDICATED check
2024-07-10 10:34:57 +03:00
Alibek Omarov
1458014a29
engine: remove unused CL_IsInMenu, don't check for Host_IsDedicated in SCR_BeginLoadingPlaque, it's useless
2024-07-10 10:24:22 +03:00
Alibek Omarov
6ff3231dab
engine: change current working directory before initializing filesystem_stdio
2024-07-09 08:45:27 +03:00
Alibek Omarov
166bed732e
engine: crashhandler: few improvements for win32 crashhandler
...
* Larger message buffer
* Print version at first line
* Tell SDL2 to ungrab mouse
2024-07-08 05:56:20 +03:00
Alibek Omarov
159467ad44
engine: add IPv6 master server
2024-07-07 21:18:02 +03:00
Alibek Omarov
c42960ec2a
engine: server: mark some cvars and movevars as server cvars, so they get reported in rules query
...
Bring back sv_contact cvar, as it makes sense to get this from rules query
2024-07-07 03:01:59 +03:00
Alibek Omarov
b4376a6a8c
engine: client: make a common function for sending out userinfo changes
2024-07-06 06:09:19 +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