Commit graph

7457 commits

Author SHA1 Message Date
Alug
0cc6c0ed4c Fix FOFs which use 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 thx to indev c:
2024-03-29 23:58:21 +01:00
Sal
62294dfe35 Merge branch 'master' into 'master'
Fix segmentation faults on 32-bit ARM devices running GNU/Linux

See merge request KartKrew/Kart-Public!332
2024-03-29 21:51:49 +00:00
Sal
8b557c724e Merge branch 'fix-cv-call-segfault' into 'master'
Fix possible segfault for cvars registered from lua with flag CV_CALL

See merge request KartKrew/Kart-Public!328
2024-03-29 21:50:16 +00:00
Sal
fbe20b3805 Merge branch 'fix-freebsd-build-errors' into 'master'
Fix FreeBSD build errors

See merge request KartKrew/Kart-Public!333
2024-03-29 21:48:42 +00:00
Gustaf Alhäll
656758fc40
Fix FreeBSD build errors 2023-10-24 16:42:35 +02:00
Christian Angel
44ac5ded31 Fix segmentation faults on ODROID-XU3/XU4 running GNU/Linux, and probably other 32-bit ARM devices like older Raspberry Pis 2023-10-19 17:13:09 -04:00
James R
684b016487 Merge branch 'fix-ban-txt-crash' into 'master'
Fix ban.txt crashing game

See merge request KartKrew/Kart-Public!329
2023-08-14 11:41:53 +00:00
James R
0b55e8df7b Rename HAVE_STRLCPY to SRB2_HAVE_STRLCPY, fix non-glibc compile
- Fix compile with msvcrt
- Fix compile with SDL 2.28.2
2023-08-14 04:40:00 -07:00
Indev
f9880e8413 Fix ban.txt crashing game 2023-08-05 14:50:12 +03:00
James R
c499a8387e Fix glibc 2.38 compile
glibc 2.38 added strlcpy and strlcat.
2023-08-03 16:45:34 -07:00
Indev
5da6d14aa1 Fix possible segfault for cvars registered from lua with flag CV_CALL 2023-07-29 18:40:48 +03:00
Sal
20a5adde02 Merge branch 'sound-refactor-backport' into 'master'
Sound refactor backport

Closes #22

See merge request KartKrew/Kart-Public!325
2022-12-20 10:06:25 +00:00
Sal
e8dee82341 Merge branch 'no-multi-fopen' into 'master'
Prevent multiple nodes fopen-ing the same file

See merge request KartKrew/Kart-Public!326
2022-12-20 10:06:14 +00:00
Sally Coolatta
c332d48e9d Only reseek if we have to
Makes it act similarly to before if only 1 node needs the file.
2022-12-19 09:55:52 -05:00
Sally Coolatta
cc54d98a39 New system to prevent multiple fopen
Instead of FILE pointer stored in the transfer, they go in their own array. The number of nodes accessing a file is kept track of, and it's only fully closed after everyone who needs it is done with it.

Means that will unfortunately do a lot more seeking, but multiple users can download the same file now without it being implementation specific.
2022-12-19 09:48:03 -05:00
Sally Coolatta
533dc7d668 Use strerror when file transfer can't be opened 2022-12-19 09:02:39 -05:00
toaster
73ef04b5e0 Merge branch 'bigger-antigrief' into 'master'
Increase range of anti-grief cvar

Closes #20

See merge request KartKrew/Kart-Public!327
2022-12-19 11:32:11 +00:00
Sally Coolatta
d9e7272ff8 Increase range of anti-grief cvar 2022-12-19 06:15:14 -05:00
toaster
fcddbdeaa1 Merge branch 'buildtitle-memory-leak' into 'master'
Consistently free G_BuildMapTitle

See merge request KartKrew/Kart-Public!323
2022-12-17 14:50:01 +00:00
James R
fe7e9ec266 Let S_StopSound, S_StopSoundByID, S_StopSoundByNum stop multiple sounds
Previously stopped only one, probably the first that
started playing.
2022-12-17 13:12:19 +00:00
toaster
91a424a034 Minor refactor: Handle *sep entirely within S_AdjustSoundParams, instead of having a component partly outside. 2022-12-17 13:05:34 +00:00
toaster
64189da28f Sound refactor backport step 2: flattened split-somethings branch 2022-12-17 13:05:14 +00:00
toaster
732861f0d4 Sound refactor backport step 1: flattened splitscreen-sound-fix branch 2022-12-17 12:58:28 +00:00
Sal
80abf38648 Merge branch 'axis-brake-broken' into 'master'
Fix gamepad axis brake behaviour

See merge request KartKrew/Kart-Public!324
2022-12-15 23:01:22 +00:00
toaster
99c1a51772 Fix gamepad axis brake behaviour
- It was actually ACCELERATION axis input that was predominantly broken!
    - It was inexplicably slightly under double what it should be (98 instead of the digital value of 50), which meant brake analog input struggled to dampen it.
    - Analog brake deceleration also gets a slight buff, from 24 to 25 (previously off from the digital value of 25 due to integer division rounding)
- Remove a pointless, always-true condition for brake handling.
    - Checked whether accel was held down OR whether `cmd->forwardmove` was less than or equal 0...
    - But further up the same function, `cmd` was invariably overwritten with a blank `I_BaseTiccmd`!
    - Therefore, `cmd->forwardmove` would always equal 0, and the `forwardmove` subtraction would always occur.
2022-12-15 21:21:43 +00:00
toaster
455177a3e1 G_BuildMapTitle creates Zone memory that must be freed 2022-12-15 19:23:06 +00:00
Sal
5008558633 Merge branch 'unfuck-icon-mac' into 'master'
Use SDL version of executable icon at runtime on macOS

See merge request KartKrew/Kart-Public!321
2022-11-12 22:37:06 +00:00
Sal
7dcc7aaa2d Merge branch 'map-search-fix' into 'master'
Fix game trying to load nothing when music and sound files are not present.

See merge request KartKrew/Kart-Public!322
2022-11-12 22:36:17 +00:00
Callmore
7e7d45e209 No more fucking arbitrary numbers 2022-11-04 21:15:19 +00:00
James R
371c7c06aa Fix -Waddress compiler warning 2022-11-04 13:04:59 -07:00
Lach
481369cc6c Use SDL version of executable icon at runtime on macOS 2022-11-02 23:25:30 +11:00
toaster
024a140e8d Do not include spurious noticedownload aborting sendfile reports 2022-11-01 22:57:04 +00:00
SteelT
74421b7700 Set curl_failedwebdownload to true for corrupt or modified HTTP downloads.
So that it actually falls back to direct downloading
2022-11-01 18:52:49 -04:00
SteelT
17444e195d Merge branch 'internal16fixes' of https://git.do.srb2.org/KartKrew/Kart into internal16fixes 2022-11-01 18:16:43 -04:00
SteelT
3a720a61cd Add MD5 checking to HTTP downloading
In cases of where the file mismatches from what the server expects, it will fall back to direct downloading of the file.
2022-11-01 18:15:13 -04:00
toaster
234bdc90bf Legacy downloader adjustments
- Fixed off by one in Got_RequestFilePak that could cause correct, maximised-space-usage packets to be rejected
- More verbose printing for aborting send files
- More verbose printing for client request files (behind a define for troubleshooting)
2022-11-01 21:30:10 +00:00
toaster
f30f1bf163 Do a little more short circuiting if dedicated idle time is occouring
Skips resync, clearticcmd, and sendtics, since all they're doing with no nodes in game is writing the same value to the same address again and again
2022-11-01 13:45:31 +00:00
toaster
0604073351 Update maps.kart hash again again 2022-11-01 13:41:19 +00:00
toaster
4bc482bdf5 Explicit pointer cast for R_InterpolatePrecipMobjState 2022-11-01 13:41:04 +00:00
Eidolon
76b719ae90 Use precip interp if gl sprite is for precip 2022-10-31 20:23:49 -05:00
toaster
8d2d926e70 Const qualifier warning 2022-10-31 23:24:23 +00:00
toaster
d52c77dba4 Enable experimental dedicated idle system
There's enough confidence among krew that there's zero apparent downside to this, but made sure to do it as a seperate commit if we have to hit the emergency switch and revert
2022-10-31 23:22:15 +00:00
toaster
9974a58252 Catch the player in 4k if they try to use the SPB-eggbox combo trick
Same rules as thunder shield - the SPBis coming out again ASAP.
2022-10-31 23:18:06 +00:00
toaster
8d9f684708 Fix "NO CONTEST" support for exitlevel-replay hut interaction 2022-10-31 23:15:17 +00:00
toaster
2dca300891 Update maps.kart hash again 2022-10-31 21:23:16 +00:00
toaster
cbe5479712 EXPERIMENTAL: Dedicated server idling system
- If no clients at server start or after 10 seconds of GS_LEVEL, and no Netxcmd waiting to be digested, halt all SV_MakeTic.
- Currently #define'd out, but if we don't get to test it before 1.6 release, I fully encourage community build developers to enable this codepath and trial it on their servers.
- It's absolutely netsafe to only have enabled on the host's end, the only risk is that a dedicated server might not re-awaken when presented with certain stimuli.
2022-10-31 20:55:52 +00:00
James R
2d8794a8b5 Use AsciiChar to get the input from windows console window 2022-10-31 19:59:58 +00:00
toaster
a7ae0e8677 Fixes interpolated z for portals (x and y were fixed already) 2022-10-31 18:20:21 +00:00
toaster
3cce3ec2ce Use Partial Addfile for G_LoadDemoExtraFiles as well
Still cope compared to the MP addfile codepath, but not the n^2 time cope of before.
2022-10-31 18:06:34 +00:00
toaster
b19004ae3b Enable extended legacy downloader
Tested with a full 255 WAD server, it's a LITTLE silly but I think it's inexplicably safe to ship!?
2022-10-31 17:51:25 +00:00