Commit graph

15687 commits

Author SHA1 Message Date
Refrag
68264e7288
Fix buffer overflow when setting a NETVAR string CVar
There was a possible buffer overflow if you tried setting a console var
that had the CV_NETVAR and that was of the string type.
The overflow would happen if you were trying to set the console variable
while in a multiplayer / netgame state.

This commit just increases the size of buf to account for everything
that needs to be written to it.
2024-05-20 10:55:10 +02:00
Lactozilla
c2b57e2654 Merge branch 'fffffop2' into 'next'
Fix backwards compat for SPR2 Super (resolves #1225)

Closes #1225

See merge request STJr/SRB2!2410
2024-05-14 02:07:11 +00:00
katsy
509df21f25 Fix backwards compat for SPR2 Super (resolves #1225) 2024-05-14 02:07:11 +00:00
Alam Ed Arias
488e6d5699 Merge branch 'fix-buffer-overflow-hookchangemusic' into 'next'
Fix buffer overflow when invoking MusicChange hook

See merge request STJr/SRB2!2441
2024-05-08 18:06:07 +00:00
Hanicef
15bf00e5ba Fix buffer overflow when invoking MusicChange hook 2024-05-08 19:56:03 +02:00
spherallic
dfb5731960 Update UZB config files 2024-05-06 23:23:47 +02:00
LJ Sonic
b6544efceb Merge branch 'long-sprite-names' into 'next'
Fix SOC freeslotting including trailing spaces in constant names

See merge request STJr/SRB2!2415
2024-04-07 16:41:34 +00:00
LJ Sonic
829a12e7ac Fix SOC freeslotting including trailing spaces in constant names 2024-04-07 18:35:58 +02:00
LJ Sonic
32a8652c35 Merge branch 'long-sprite-names' into 'next'
Sprite names up to 64 character long and 256 frames per sprite

See merge request STJr/SRB2!2394
2024-04-05 17:21:42 +00:00
LJ Sonic
4a9462761a Fix early free 2024-04-05 19:10:15 +02:00
LJ Sonic
a1649186ce Fix some error messages 2024-04-05 17:31:42 +02:00
LJ Sonic
8a6b5d7c0f Support setting two frames per lump for long sprites 2024-04-04 00:06:33 +02:00
LJ Sonic
22106ef8b1 Fix short sprite names triggering an error 2024-04-03 23:24:54 +02:00
LJ Sonic
245a82112f Make rotation optional for long sprites 2024-04-03 22:39:58 +02:00
LJ Sonic
eaf0ba6658 Error out when a sprite definition contains a subfolder 2024-04-03 22:07:59 +02:00
LJ Sonic
32a3683e07 Fix error message when a patch is missing 2024-04-03 22:06:03 +02:00
LJ Sonic
f406e9bbb5 Throw a Lua error when R_Frame2Char is called with a frame number without character representation 2024-04-03 20:39:53 +02:00
Logan Aerl Arias
8647281a51 Merge branch 'vcpkg' into 'next'
replace CPM with vcpkg

See merge request STJr/SRB2!2321
2024-03-23 04:50:19 +00:00
Logan Aerl Arias
6b4dac7478 replace CPM with vcpkg 2024-03-23 04:50:19 +00:00
spherallic
dfecbe87b8 Fix FreeBSD build error 2024-03-21 19:30:45 +01:00
sphere
620f1e55aa Merge branch 'mpss-extratime' into 'next'
Make Extra Time powerup work in old-style special stages

See merge request STJr/SRB2!2292
2024-03-21 15:49:12 +00:00
sphere
31367e3e07 Merge branch 'mpss-mixnightscountdown' into 'next'
Support LF_MIXNIGHTSCOUNTDOWN for old-style special stages

See merge request STJr/SRB2!2291
2024-03-21 15:49:10 +00:00
sphere
7aa8477443 Merge branch 'fix-time-old-special-softlock' into 'next'
Fix softlock on old special stages when running out of time due to being hit

See merge request STJr/SRB2!2398
2024-03-21 15:46:26 +00:00
Alam Ed Arias
95457b8fe0 Fix stringop-truncation warnings for Debian Bookworm builds 2024-03-21 11:03:05 -04:00
Hanicef
d00c6a8ab9 Fix softlock on old special stages when running out of time due to being hit 2024-03-20 22:49:12 +01:00
LJ Sonic
49fa45039e Fix error report when some frames are missing 2024-03-20 18:06:19 +01:00
LJ Sonic
0e57d70b95 Automatically mirror long sprites for missing rotations 2024-03-17 00:41:38 +01:00
LJ Sonic
f6cb5d563c Only log sprite and frame additions when at least one was added 2024-03-17 00:40:29 +01:00
LJ Sonic
0f6f6afb44 Fix sprite and frame addition logging 2024-03-17 00:28:25 +01:00
LJ Sonic
761a972927 Fix R_AddSingleSpriteDef for short sprite names 2024-03-17 00:27:19 +01:00
LJ Sonic
4ebda932bb Cleanup 2024-03-16 19:36:18 +01:00
LJ Sonic
7371566592 Fix error message for too long sprite names 2024-03-16 19:35:56 +01:00
LJ Sonic
dc3436df78 Fix compiler warnings 2024-03-16 18:54:10 +01:00
LJ Sonic
9b6c642345 Fix infinite loop 2024-03-16 18:13:43 +01:00
LJ Sonic
a0c253f81e Fix invalid syntax 2024-03-16 17:49:34 +01:00
LJ Sonic
de8a4bb3e1 Fix compiler warnings 2024-03-16 17:21:35 +01:00
LJ Sonic
a6b71826f9 Use R_GetSpriteNumByName everywhere 2024-03-16 17:00:59 +01:00
LJ Sonic
45d54c38f7 Use bitarray_t for used_spr 2024-03-16 16:26:33 +01:00
LJ Sonic
b3844a9ca5 Cleanup initfreeslots() 2024-03-16 16:14:52 +01:00
LJ Sonic
178d29cf0c Allow up to 256 frames per sprite 2024-03-16 00:51:23 +01:00
LJ Sonic
99a9e5fcc9 Add support for LongSprites/ folder 2024-03-15 21:22:12 +01:00
LJ Sonic
42c610af9c Fix GetFramesAndRotationsFromShortLumpName 2024-03-15 21:02:41 +01:00
LJ Sonic
33f176fd5b Refactor R_AddSingleSpriteDef 2024-03-15 20:15:38 +01:00
LJ Sonic
837c3a7be3 Refactor R_AddSingleSpriteDef 2024-03-15 20:06:21 +01:00
LJ Sonic
1c415749f7 Refactor R_AddSpriteDefs 2024-03-15 15:45:35 +01:00
LJ Sonic
092ac6643e Allow sprite names with up to 64 characters 2024-03-14 20:32:10 +01:00
LJ Sonic
8073b8b3f0 Fix rare Lua bug when updating a SPR_ constant 2024-03-14 20:20:12 +01:00
LJ Sonic
9ca5ce01f1 No longer store wadnum in sprnames 2024-03-14 13:56:47 +01:00
sphere
940756ad62 Merge branch 'fix-1219' into 'next'
Fix #1219

Closes #1219

See merge request STJr/SRB2!2391
2024-03-14 11:41:13 +00:00
Lactozilla
7469a6271b Fix #1219 2024-03-14 00:59:49 -03:00