Commit graph

26308 commits

Author SHA1 Message Date
Oni
7a54b3eb3b Merge branch 'debug-holy-textures' into 'master'
Debugging for holey textures on walls

Closes #1038

See merge request KartKrew/Kart!1919
2024-02-12 01:40:59 +00:00
James R
3e225f97a2 Render errored holey textures as TRANSERx 2024-02-11 17:10:09 -08:00
James R
38c9c5f9a7 devmode render: show a list of errored holey textures on the HUD
Holey textures (textures with transparent pixels) cannot
be used on upper/lower textures or on 1-sided linedefs. If
the game tries to render this, the texture name will
appear on the HUD if devmode render is turned on.
2024-02-11 17:10:09 -08:00
James R
c0a6d20cec Got_Luacmd: always read netxcmd data, even if command is not executed 2024-02-11 15:48:00 -08:00
Eidolon
63ff2f3f66 Check Lua stack before pushing cons args
Prevents a Lua stack overrun when executing absurd console commands for
local-only lua commands.
2024-02-11 15:48:00 -08:00
toaster
3f78c9d2e6 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into separate-spb-attack-records
# Conflicts:
#	src/menus/play-local-race-time-attack.c
#	src/p_setup.cpp
2024-02-11 23:27:33 +00:00
James R
10800f307c promote, demote: bounds checking, remove intermediate buffer
- Check playernum is in range [0, MAXPLAYERS-1]
- Do not copy string to intermediate buffer
2024-02-11 05:48:06 -08:00
James R
4ee00d4333 Pass const pointer to all netxcmd handlers
Ensure buffer data is read-only and not modified by
handler
2024-02-11 05:42:07 -08:00
James R
c0b823fe6a Let READ macros be used with const pointers 2024-02-11 05:41:50 -08:00
James R
6d64d15216 Got_Saycmd: copy message content into intermediate buffer
This prevents modifying the original buffer at the cleanup
step as well as potentially writing out of bounds.
2024-02-11 05:38:12 -08:00
James R
42bca87c9a Got_Luacmd: ensure lua stack is large enough for command arguments 2024-02-11 05:33:20 -08:00
AJ Martinez
09b5cb5020 MAXCOMBOTIME 6s -> 4s 2024-02-10 15:50:15 -07:00
AJ Martinez
8f2989a8a9 Don't inflate bumpers you're going to lose 2024-02-10 15:28:26 -07:00
AJ Martinez
b55d236733 Scale bumper size to combo length when hit 2024-02-10 15:16:48 -07:00
AJ Martinez
18ee3ad73d Battle bumpers: 3x progressivethrust decay 2024-02-10 14:38:04 -07:00
AJ Martinez
e0494d5576 Merge remote-tracking branch 'origin/master' into bumper-boats 2024-02-09 22:32:25 -07:00
Oni
da84a94362 Merge branch 'hyu-feedback' into 'master'
Add Hyudoro sounds

Closes #1030

See merge request KartKrew/Kart!1912
2024-02-10 04:42:29 +00:00
Oni
83183b53cf Merge branch 'fix-column-fix' into 'master'
R_DrawColumn_Template: fix non-po2 column drawing

Closes #1033

See merge request KartKrew/Kart!1913
2024-02-10 04:41:25 +00:00
James R
27b4013c18 R_DrawColumn_Template: fix non-po2 column drawing
- Fix for efd017085
- To preserve tutti-frutti fix, offset drawing with
  texheight, but detect po2 with sourcelength
2024-02-09 19:46:45 -08:00
Oni
0e8f35a5ce Merge branch 'map-names-everywhere' into 'master'
Map name on pause menu and intermission; current song credit on pause menu; server name in medium font

Closes #769 and #402

See merge request KartKrew/Kart!1892
2024-02-10 02:14:49 +00:00
James R
ce7d22d029 Pause menu: display map icon, map name and currently playing song credit 2024-02-09 18:13:35 -08:00
James R
1a0525b0c0 Adjust position of PAUSE graphic
- Move the graphic up a little
- Fix position on pause menu in non-green resolutions
2024-02-09 18:13:35 -08:00
James R
d7e0a4d01a Add S_LoadSongCredit/S_UnloadSongCredit, refactor cursongcredit
- cursongcredit behaves the same as before
- Always compose song credit string
- g_realsongcredit always stores the song credit for the
  current music, even if no song credit is displayed on
  the HUD
2024-02-09 18:13:35 -08:00
James R
fb9f4a68b9 Server splash: display server name in medium font 2024-02-09 18:13:35 -08:00
James R
3876f16c0d Intermission: fix speed scramble position in non-green resolutions 2024-02-09 18:13:34 -08:00
James R
eefb4de6d6 Intermission: scroll map name above "DR. ROBOTNIK'S RING RACERS" 2024-02-09 18:13:34 -08:00
AJ Martinez
db6a8efdeb Add Hyudoro sounds 2024-02-09 18:36:01 -07:00
James R.
6b831a0fa2 Merge branch 'fix-show-character-ghosts' into 'master'
Time Attacking: fix "Show Character" option for ghosts

Closes #1013

See merge request KartKrew/Kart!1896
2024-02-09 23:47:50 +00:00
AJ Martinez
2327b6fcca Merge branch 'calm-ark-arrows' into 'master'
Freeze Ark Arrows in reducevfx

See merge request KartKrew/Kart!1911
2024-02-09 23:22:14 +00:00
AJ Martinez
8f0ee6752f Freeze Ark Arrows in reducevfx 2024-02-09 16:18:15 -07:00
AJ Martinez
7b5abc19b9 Merge branch 'fix-spb-combo' into 'master'
SPB: fix endless combo on players in its path

Closes #1015

See merge request KartKrew/Kart!1900
2024-02-09 22:49:31 +00:00
AJ Martinez
bd9511424a Merge branch 'fuzzfixer' into 'master'
HUGE crash fixes (super hyper fuzzer + ASAN)

See merge request KartKrew/Kart!1908
2024-02-09 22:49:22 +00:00
AJ Martinez
1f2e57c060 K_RepairOrbitChain: Don't naively call P_MobjWasRemoved on NULL 2024-02-09 12:31:34 -07:00
James R
42146c5ea2 R_AddPrecipitationSprites: fix use of th after freed
R_ProjectPrecipitationSprite may free th
2024-02-08 18:37:03 -08:00
James R
56e710266c M_TokenizerOpen: pass size in as argument instead of calling strlen implicitly
This function is used for parsing TEXTMAP and the data is
not NUL-terminated.
2024-02-08 18:16:41 -08:00
AJ Martinez
78a727e9cb Guard against more unsafe accesses to P_DamageMobj source 2024-02-08 17:50:38 -08:00
James R
b6241adbe9 Use PU_LEVEL for texture caching
- Some maps may contain very large or very many (animated)
  textures
- Texture sets are not typically shared between maps, so
  each texture allocation may go unused for a long time
  after the map ends
- Keeping these PU_STATIC leads to significant memory
  usage over the program duration
2024-02-08 17:50:38 -08:00
SteelT
cbb7c281c8 discord.c: Fix joinSecret memory leak 2024-02-08 01:26:07 -05:00
SteelT
5c0bebbeba discord.c: Fix removeRequest->discriminator not being freed in DRPC_RemoveRequest 2024-02-08 01:25:57 -05:00
James R
af363e575a K_UpdateDistanceFromFinishLine: fix memory leak with backwards pathfinding 2024-02-07 22:10:42 -08:00
AJ Martinez
290b97500a Fix crashes when P_DamageMobj was naively passed a removed source 2024-02-07 20:21:32 -07:00
AJ Martinez
6b980cb1c7 Fix stale reference in P_KillMobj (crash) 2024-02-07 15:09:26 -07:00
AJ Martinez
1dad6be6a4 Fix stale target in A_SSMineExplode (crash) 2024-02-07 15:05:49 -07:00
Oni
3d3d8bc06c Merge branch 'safecheatcheck-unfuck' into 'master'
Reset cheatchecks when respawns would decrease lap

Closes #972

See merge request KartKrew/Kart!1905
2024-02-06 13:21:29 +00:00
Oni
3a4506dae2 Merge branch 'fix-replay-splits' into 'master'
Fix splitscreen viewport and delay counter carrying over from replays into play contexts

Closes #464

See merge request KartKrew/Kart!1902
2024-02-06 13:21:13 +00:00
Oni
74eee5e718 Merge branch 'server-name-sanitize' into 'master'
Sanitize server name/contact, fully support caret codes

Closes #1008

See merge request KartKrew/Kart!1906
2024-02-06 13:20:08 +00:00
AJ Martinez
4efaed3690 Fix sound falloff calculation overflow 2024-02-06 06:02:17 -07:00
AJ Martinez
45f043a1c4 Don't attempt itemamount correction after orbitals self-destruct 2024-02-06 06:00:59 -07:00
AJ Martinez
6f616265c4 Don't try to orbit things that aren't there 2024-02-06 01:47:10 -07:00
James R
4a7d2504b0 srb2::hwr2::PaletteManager: disable lighttables upload
- This code uploads encoremap to the GPU as a texture.
- It assumes encoremap is 256 * 32 bytes, but in reality
  encoremap is only 256 bytes.
- The textures go completely unused, so I simply
  commented out the code altogether.
2024-02-05 19:04:23 -08:00