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
LJ Sonic
24129e94d3
Fix HOMs in large rooms
...
Credits go to Lactozilla
2024-08-01 01:23:38 -04:00
LJ Sonic
a59c92842b
Fix maps with more than 65535 segs not working correctly
...
This renders the "quadrant hack" and ZenNode largely useless
2024-08-01 01:23:31 -04:00
LJ Sonic
99c46acc14
Fix integer overflow with diagonal node splits
...
Fixes random invisible walls and possibly more errors
2024-08-01 01:23:24 -04:00
NepDisk
e83cf2c17f
Fix tint equation shader
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2348\?commit_id\=7433137e988a359f617b05ffe7d2a98ec4322fb4
2024-08-01 01:22:25 -04:00
Zwip-Zwap Zapony
9418a3789c
Clamp screen textures to OpenGL's max texture size
2024-08-01 01:15:59 -04:00
Zwip-Zwap Zapony
a56955c9fb
Fix OpenGL screen texture resolution
2024-08-01 01:15:44 -04:00
NepDisk
dedfe35cc2
Use size_t instead of intptr_t
2024-08-01 01:14:27 -04:00
Alug
9fe4f13539
Fix FOFs with transferline flag and many linedefs randomly crashing
...
linenum could go out of bounds if you use more than 4 linedefs for such setup, hence making the game unable to retrieve textures and therefore crashing the games sometimes
many thanks to indev for helping me figuring this one out c:
2024-08-01 01:11:53 -04:00
NepDisk
fbb69305bf
Use Kart/SRB2 console colors
2024-08-01 00:50:25 -04:00
NepDisk
4089f8fc53
port newer V_CubeApply from SRB2
2024-08-01 00:36:28 -04:00
NepDisk
2733480d8c
Reapply "Fix saturation not being applied on colormaps in OpenGL"
...
This reverts commit 6fb38b9c7b .
2024-08-01 00:23:02 -04:00
NepDisk
6fb38b9c7b
Revert "Fix saturation not being applied on colormaps in OpenGL"
...
This reverts commit c3e9b2edff .
2024-08-01 00:21:12 -04:00
Gustaf Alhäll
c3e9b2edff
Fix saturation not being applied on colormaps in OpenGL
2024-08-01 00:18:36 -04:00
Gustaf Alhäll
2c458a14fd
Fix saturation option not being applied on OpenGL
2024-08-01 00:18:02 -04:00
Gustaf Alhäll
3e46e9d553
Fix segfaults on some systems due to polyvertex being NULL
2024-08-01 00:17:13 -04:00
Lach
7d7e56d060
Invert OpenGL rollangle for papersprites to match software renderer behaviour
2024-08-01 00:15:02 -04:00
Sally Coolatta
bdf8ce3064
Paired down OS Lua library
...
Pretty much removed everything except for time operations. File operations steps on the toes of the IO library, and the others were useless or invasive. The only one I wasn't sure about was `os.tmpname()`, but I think that's something that could be implemented for IO library instead if necessary.
The main reason I want this is because os.time provides an OK way to initially seed RNG on game first boot. But it would also be cute to let Lua modders be able to re-implement Christmas mode / day&night cycles themselves :p
2024-08-01 00:07:17 -04:00
Sally Coolatta
711e105fe3
Handle sorting against water FOFs properly
2024-07-31 23:59:48 -04:00