Commit graph

7466 commits

Author SHA1 Message Date
Alam Ed Arias
3c3c59928d Makefile: support for Mingw64 toolchain 2023-10-18 00:02:17 -04:00
Alam Ed Arias
01911e4d37 Clear unused-but-set-variable warnings 2023-10-18 00:02:17 -04:00
Alam Ed Arias
37c65ca7e4 Makefile: PREFIX overwrite make's default CC and CXX 2023-10-17 23:14:09 -04:00
Alam Ed Arias
cb4ffe6f60 no Dr. Mingw support for Win x64 build 2023-10-17 23:12:14 -04:00
Alam Ed Arias
98f8b49e45 Makefile: support toolchain envs 2023-10-17 22:36:17 -04:00
Alam Ed Arias
bf6be522ea GitLib CI: SRB2 2.1 codebase use WFLAGS to control warning flags 2023-10-17 21:46:56 -04:00
Alam Ed Arias
2365ee9cb0 GitLab CI: SRB2 2.1 wants nasm 2023-10-17 21:46:56 -04:00
Alam Ed Arias
16c70e7b29 GitLab CI: Compile the SDL version of Win32 builds 2023-10-17 21:46:37 -04:00
Alam Ed Arias
46f0385566 d_netfile.c: Update libcurl support to 7.88 2023-10-17 21:45:47 -04:00
Alam Ed Arias
579c5ab052 Makefile: Support GCC version 11, 12 and 13 2023-10-17 21:45:34 -04:00
Alam Ed Arias
94e7430dd9 copy gitlib-ci config from SRB2's next 2023-10-17 20:57:14 -04:00
Alam Ed Arias
7fea4894a2 Add support for GCC 13.2 2023-10-17 20:55:26 -04:00
Alam Ed Arias
a5b99199fc Clear implicit-const-int-float-conversion warnings 2023-10-17 20:05:48 -04:00
Alam Ed Arias
79e2596ce6 Clear missing-noreturn warnings 2023-10-17 19:57:56 -04:00
Alam Ed Arias
1b82918384 Clear misleading-indentation warnings 2023-10-17 19:56:27 -04:00
Alam Ed Arias
4e9e18df82 Clear unused-but-set-variable warnings 2023-10-17 19:54:07 -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
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