Commit graph

19380 commits

Author SHA1 Message Date
NepDisk
45fe2754e6 P_AddWadFile partial stages 2024-08-02 03:00:51 -04:00
NepDisk
7721a104d8 Fix spring strentghs and doomednums 2024-08-02 01:14:19 -04:00
NepDisk
4417a9e5c2 fix Join freeze
whoops
2024-08-01 21:25:46 -04:00
Ashnal
2dcf8c103a Attempt to fix use after free bug
with precipitation mobjs on netgame load
2024-08-01 19:24:10 -04:00
Ashnal
8fe92701ef Should fix the dedicated server player node takeover
that completely destroys servers
2024-08-01 19:12:43 -04:00
NepDisk
c1fb02bcc8 Fix up remaining actnums 2024-08-01 18:01:21 -04:00
NepDisk
5f7609563c Lock more stuff behind ringtoggle 2024-08-01 17:44:18 -04:00
NepDisk
7613250aec remove brakedust 2024-08-01 17:38:46 -04:00
JugadorXEI
9baae4cecb Store terrain ID instead of terrain pointer, add new helpers and accomodate for this 2024-08-01 17:29:36 -04:00
NepDisk
1c16abadf6 implement water panels and add pogo springs to terrain 2024-08-01 17:25:46 -04:00
NepDisk
3aabe3ea31 Fix speedo ring offset, add old speedometer back and introduced speedo style 2024-08-01 16:42:49 -04:00
James R
8e6e122c05 R_AddPrecipitationSprites: fix use of th after freed
R_ProjectPrecipitationSprite may free th
2024-08-01 16:01:20 -04:00
James R
b0425f14ed Merge branch 'precip-height-random-crash' into 'master'
Conditionally randomize precip height

Closes #528

See merge request KartKrew/Kart!1536
2024-08-01 16:00:56 -04:00
toaster
772626593b P_SwitchWeather: Fix potential infinite loop if non-NullPrecipThinker thinker existed in THINK_PRECIP 2024-08-01 16:00:44 -04:00
NepDisk
2ace452df6 Stop calling P_NullPrecipThinker
9eab5317f3
2024-08-01 16:00:12 -04:00
NepDisk
dd4b0426ca Unlink non-mobj and non-precip thinkers when loading and freeing 2024-08-01 15:47:28 -04:00
NepDisk
fde5108e0f Revert "Attempt to fix use after free bug"
This reverts commit 94ac52641f.
2024-08-01 15:45:34 -04:00
Ashnal
94ac52641f Attempt to fix use after free bug
with precipitation mobjs on netgame load

# Conflicts:
#	src/p_saveg.c
2024-08-01 15:41:33 -04:00
Eidolon
d718ccb4ba Use precip interp if gl sprite is for precip 2024-08-01 15:40:44 -04:00
James R
ed75d3946d Render precip through blockmap instead of during BSP
There can be very many precipmobjs in a sector. During BSP
rendering, for each sector reached by BSP (the entire
visible level at least), all the precipmobjs would be
iterated and their distance from the camera calculated, to
determine whether they are within draw distance.

The issue with the old approach is that there really are
too many precipmobjs in each sector. By iterating the
blockmap within a certain range instead, precipmobjs
out of view are not iterated at all, saving some time.

Caveat: drawdist_precip is no longer respected as an
exact value, since it must round to the precision of the
blockmap.

List of potentially scary changes:

- Removes snext/sprev for precipmobj_t
- Removes preciplist for sector_t

- Adds bnext/bprev for precipmobj_t
  - mobj_t and precipmobj_t field offsets are symmetrical

- Modified P_SetPrecipitationThingPosition and P_SetThingPosition
  - The syntax in these functions is kind of wacky
2024-08-01 14:56:36 -04:00
Gustaf Alhäll
a047144c4d Cache and reuse removed mobjs when spawning mobjs 2024-08-01 14:21:41 -04:00
NepDisk
94eb798ae7 Fix compile, add kate-swp to gitignore 2024-08-01 14:14:27 -04:00
NepDisk
d7dd4f68e2 rings disable toggle, rebalance rings 2024-08-01 14:06:24 -04:00
toaster
e832cf5963 p_enemy.c: All object gravity arc calculations now collaborate with mapobjectscale again. 2024-08-01 14:05:13 -04:00
NepDisk
608e2b6844 flipcam and encore flipcam 2024-08-01 11:46:59 -04:00
Oni
7a4055732d Merge branch 'less-signal-handling-stuff' into 'master'
Do less in NEWSIGNALHANDLER handler

See merge request KartKrew/Kart!2372
2024-08-01 10:57:31 -04:00
NepDisk
68482b4216 Add evil mutex bypass hack in console
a68c863087
2024-08-01 10:56:41 -04:00
James R
a29ade4440 I_ReportSignal: fix -Wformat-overflow 2024-08-01 10:52:40 -04:00
NepDisk
70a8b66af2 Fix compile 2024-08-01 10:52:36 -04:00
AJ Martinez
5246659f8c Merge branch 'remove-malloc-in-signal-handler' into 'master'
Remove malloc from I_ReportSignal

See merge request KartKrew/Kart!1650
2024-08-01 10:48:57 -04:00
NepDisk
43c3f58f1b Revert "signal_handler_child: call G_DirtyGameData for NEWSIGNALHANDLER too"
This reverts commit 6186d2304b.
2024-08-01 10:46:25 -04:00
James R
6186d2304b signal_handler_child: call G_DirtyGameData for NEWSIGNALHANDLER too 2024-08-01 10:44:09 -04:00
James R
32fa676f5b sdl/i_system.c: add -nofork option to disable forking signal handler 2024-08-01 10:43:29 -04:00
Eidolon
603be1dcaa Merge branch 'gl-encoremap-leak-fix' into 'master'
Fix GLENCORE memory leak, re-enable

See merge request KartKrew/Kart!1688
2024-08-01 03:44:32 -04:00
NepDisk
00889e7001 Revert "Merge branch 'lua-action-profile' into 'master'"
This reverts commit e1c010c8ed.
2024-08-01 03:34:53 -04:00
James R.
e1c010c8ed Merge branch 'lua-action-profile' into 'master'
lua_profile: measure lua actions

See merge request KartKrew/Kart!2219
2024-08-01 03:26:46 -04:00
Hannu Hanhi
32a66b1585 Fix Lua stack overflow in LUA_UpdateSprName 2024-08-01 03:11:33 -04:00
Hannu Hanhi
6367af6cd7 LUA_EnumLib optimizations for constant value access
- constants are stored into _G after first use

- made LUA_EvalMath's dedicated Lua state permanent so it can also benefit from these optimizations
2024-08-01 03:11:20 -04:00
NepDisk
eb93c8df5b Fix possible crashes in the Lua API when accessing invalid fields
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2128\?commit_id\=6414e9db79771494f87662f902999a028aa385cd
2024-08-01 02:54:12 -04:00
Hanicef
091f781b49 Add tofixed lua function 2024-08-01 02:20:47 -04:00
NepDisk
78e15d489b Expose BASEVIDWIDTH and BASEVIDHEIGHT to Lua and SOC
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2468
2024-08-01 02:20:28 -04:00
Hanicef
73d324b2a2 Add NameChange lua hook 2024-08-01 02:12:05 -04:00
Ace Lite
0afaa1e977 Just moved Lua_HookVoid really to the end of the function. 2024-08-01 02:07:25 -04:00
Ace Lite
e6ad6a6889 Initial Commit - Hook addon load 2024-08-01 02:06:34 -04:00
hayaunderscore
be266cd691 Change some comments 2024-08-01 02:00:03 -04:00
hayaunderscore
e42008ab13 Add follower_t to userdataType() 2024-08-01 01:59:39 -04:00
hayaunderscore
94f6206c87 Expose followers[] and follower_t to lua 2024-08-01 01:58:04 -04:00
LJ Sonic
496fd82962 Expose debug library to Lua 2024-08-01 01:47:02 -04:00
Hanicef
0870707aee Fix crash if a packet fails to reach the client 2024-08-01 01:42:22 -04:00
pastel
214f9a659a don't adjust texture coords of nonexistant gpatch 2024-08-01 01:27:03 -04:00