smallmodel
13197acb3a
Uses a signed char
instead of a char
for opcode stack offset. On some platforms like ARM, char
is unsigned by default
...
This fixes #311 where a memory corruption that occurred in ARM was caused because of insufficient ScriptVM stack size. The stack size was incorrectly calculated because the stack offset was using unsigned values instead of signed in ARM.
2024-06-22 19:18:08 +02:00
smallmodel
2f48ca6adb
Adds assertion check to check if top stack is out of bounds
2024-06-22 19:03:27 +02:00
smallmodel
01d938b5ba
Fixes some variables being uninitialized
2024-06-22 19:03:04 +02:00
smallmodel
186d7a12e5
typo
2024-06-22 16:51:20 +02:00
smallmodel
5192d36f81
Fixes gametype incorrectly checked in G_InitWorldSession
2024-06-22 16:43:03 +02:00
smallmodel
dfb6c37c9e
Don't copy the server name if it's from the same string address
2024-06-22 16:42:39 +02:00
smallmodel
cb208b9ad2
Initialize the message buffer to avoid leaking private data
2024-06-22 16:39:26 +02:00
smallmodel
e4d20c3fa1
Initialize explosion flash
2024-06-22 16:39:08 +02:00
smallmodel
0b747bf1c5
Use memmove
rather than strcpy
for removing key values
2024-06-22 16:39:00 +02:00
smallmodel
e207715b5e
Initialize m_iLastTiresUpdate
2024-06-22 16:12:29 +02:00
smallmodel
bef1b456e1
Initialize all Ammo members
2024-06-22 16:11:03 +02:00
smallmodel
11349f9ad5
Fixes the source pos access for ENUM_if_statement
(out of bounds index)
2024-06-22 16:08:33 +02:00
smallmodel
2a485a6b69
Fixes the endianness when loading LOD from file
2024-06-22 15:34:38 +02:00
smallmodel
f41e92de6e
Fixes possible memory corruption when generating a LOD curve
2024-06-22 15:34:00 +02:00
smallmodel
835c0b0d9a
Adds constants for LOD curve values
2024-06-22 15:30:59 +02:00
smallmodel
d9dc34f06d
Checks for AGEN_TIKI_DIST_FADE
and AGEN_ONE_MINUS_TIKI_DIST_FADE
for static models
2024-06-21 22:02:59 +02:00
smallmodel
907ff36018
Fixes r_showstaticbboxes
freezing the game
2024-06-21 21:49:13 +02:00
smallmodel
64626a767c
Fixes entities not being rendered after number 1023
...
This fixes #310 where some static models would not be rendered, making it look like there are invisible walls.
2024-06-21 21:48:55 +02:00
smallmodel
a7df73073d
Adds a condition to check if static model poly can be rendered
2024-06-21 20:54:14 +02:00
smallmodel
40492daecd
Avoid creating a new sound index when there is no active client
2024-06-16 23:20:30 +02:00
smallmodel
a5691d7779
Allows clients to join a single-player game
2024-06-16 20:48:34 +02:00
smallmodel
d1ecd4a3c8
Don't initialize client persistant data during autosave
2024-06-16 18:19:11 +02:00
smallmodel
5482b31c66
Reads the sv_privatePassword
value
2024-06-16 18:18:14 +02:00
smallmodel
15f2f6c798
Renamed g_session functions
2024-06-16 18:16:14 +02:00
smallmodel
46b3f4eb5e
Adds differentMap
parameter for G_ClientConnect, it clears the selected DM weapon.
...
On each map change, the player gets asked for the primary weapon like in 2.0 and above
2024-06-16 18:14:26 +02:00
smallmodel
f5aadbb788
If the loopSound has no origin, make it local
...
This should fix #309
2024-06-15 16:38:02 +02:00
smallmodel
bbb54ea36d
Uses LoopSounds() parameters instead of just the alias
2024-06-15 16:33:02 +02:00
smallmodel
d7a5eb5d2f
Use LEVEL_WIDE_MIN_DIST instead of 10000 constant
2024-06-15 16:26:35 +02:00
smallmodel
cc716c3fa4
Don't process loopsound yet when spawning
2024-06-15 16:22:34 +02:00
smallmodel
141574a0d7
Ignore mouse events when paused
2024-06-15 16:22:21 +02:00
smallmodel
2df8ed10d0
Improves timeout checking, properly show the timeout menu and shutdown the server
2024-06-15 14:56:30 +02:00
smallmodel
40e3977664
Continue using entities even when attached to a turret, in 1.11 and below for backwards compatibility!
...
Fixes #140 where the MG42 objective in m1l1 would not trigger
2024-06-15 00:16:29 +02:00
smallmodel
7ddee0100e
Implements CG_BodyFallSound()
2024-06-14 22:24:55 +02:00
smallmodel
6b869c4c0d
Use an enumeration instead of raw values
2024-06-14 21:39:54 +02:00
smallmodel
91497d8fa7
Implements Player::EventTestAnim()
2024-06-14 21:20:15 +02:00
smallmodel
85bf56ae03
Call SetWeight() rather than setting it manually
2024-06-14 21:19:04 +02:00
smallmodel
84d702838d
Implemented Player::MeasureLandmineDistances()
...
This makes minedetector actually detect mines, especially on `e1l2`
2024-06-13 23:58:31 +02:00
smallmodel
fd3a36f162
Fixed melee sometimes not making the hit sound
2024-06-13 23:30:19 +02:00
smallmodel
10e3192f85
Fixed MASK_PLAYERSOLID being wrong
2024-06-13 23:24:11 +02:00
smallmodel
de874874e4
Use an enum for setup case rather than raw values
2024-06-13 23:11:28 +02:00
smallmodel
72e315bce1
Using an enum channelType_e
rather than raw values for bone channel types
2024-06-13 23:04:33 +02:00
smallmodel
02ef85e390
Removed GetChannelTypeFromName(), was useless
2024-06-13 21:28:49 +02:00
smallmodel
aeba0e0f6f
Set the real limit of MAX_SKELETOR_CHANNELS
2024-06-13 21:26:59 +02:00
smallmodel
f8fa944054
Some refactoring, + implemented SetLocalFromGlobal()
2024-06-13 21:26:51 +02:00
smallmodel
1d50fa088a
Don't dealloc if there is no frame in the channel
2024-06-13 21:26:29 +02:00
smallmodel
546ded324e
Made ChannelNames() method public
2024-06-13 21:25:45 +02:00
smallmodel
332a635031
Use MAX_GLOBAL_FROM_LOCAL
2024-06-13 21:25:02 +02:00
smallmodel
de02c868a2
Fixed bullet tracers being incorrect
...
This should fix almost immobile bullet tracers on t1l1
2024-06-11 23:46:50 +02:00
smallmodel
a74b966b7c
Update fog when changing whether or not the terrain must be rendered
2024-06-11 23:44:02 +02:00
smallmodel
ca4b1ebdee
Don't render terrain when refdef.render_terrain
is set to false
2024-06-11 23:37:45 +02:00