Commit graph

21098 commits

Author SHA1 Message Date
James R
e194353da9 d_netfil.c: fix usage of CURLOPT_PROTOCOLS_STR
blame be7cabc50
2023-01-12 07:55:42 -08:00
Oni
78f04f8c71 Merge branch 'bot-realtime-fix' into 'master'
Bot `realtime` fix

See merge request KartKrew/Kart!874
2023-01-12 00:35:08 +00:00
James R
bdbcceb212 Merge branch 'fix-audio-null-deref' into 'master'
audio: conditionally shutdown SFX/Music players

See merge request KartKrew/Kart!881
2023-01-11 03:01:11 +00:00
James R
fc6c83577c Merge branch 'fix-curlopt-deprecated' into 'master'
Fix libcurl deprecation warnings in d_netfil.c

See merge request KartKrew/Kart!882
2023-01-11 02:56:46 +00:00
James R
567bd2a84a d_netfil: use CURLOPT_XFERINFOFUNCTION
Fixes deprecated warning since libcurl 7.32.0 (2013-08-12).
2023-01-09 19:34:15 -08:00
James R
be7cabc50f d_netfil: use CURLOPT_PROTOCOLS_STR if libcurl >= 7.85.0 (2022-08-31) 2023-01-09 19:30:23 -08:00
James R
19a85c25e2 Merge branch 'fix-spectator-offroad' into 'master'
Fix spectators spawning offroad particles

Closes #394

See merge request KartKrew/Kart!865
2023-01-10 02:45:04 +00:00
James R
344cc2ced4 Merge branch 'split-menudef' into 'master'
Split k_menudef.c into menus folder

See merge request KartKrew/Kart!873
2023-01-10 02:40:52 +00:00
Eidolon
9f649d7701 audio: conditionally shutdown SFX/Music players
Fixes a potential segfault during startup where the sound hasn't been
initialized yet, but an I_Error occurs while loading data.
2023-01-09 14:58:59 -06:00
Eidolon
c5ecec1523 Merge branch 'overload-visitor' into 'master'
cxx: Add srb2::Overload for using std::visit

See merge request KartKrew/Kart!879
2023-01-09 20:33:53 +00:00
Eidolon
1b859f5073 cxx: Add srb2::Overload for using std::visit 2023-01-09 13:05:35 -06:00
Eidolon
5fe4e299c9 Merge branch 'convert-sdl-i-video' into 'master'
cxx: Convert sdl/i_video.cpp

See merge request KartKrew/Kart!872
2023-01-09 18:27:49 +00:00
toaster
3d9137a9cf Pre-emptively fixes a possible issue where a player who is exiting would have their realtime adjusted on respawn, affecting final results. 2023-01-08 14:02:02 +00:00
toaster
9980631e2f Fix bots' realtime not ticking upwards when all human players have exited
This corrects the issue where bots have the same time on exit as the last human player, and therefore tie with them, with disastrous consequences for GP.
2023-01-08 13:58:14 +00:00
James R
9be7563353 sdl/i_video.cpp: fix -Wsign-compare 2023-01-07 07:51:54 -08:00
James R
0b3d04bbfd Split k_menudef.c into menus subdirectory
- src/menu contains files for each menu's definitions.
- src/menu/transient contains menus which are reused in
many places or are separate from Main Menu entirely.

File names ending in "-1" are menus which contain
a submenu. The suffix is added so that the parent menu
sorts before all its children in directory lists.

It's also done so Tab completion doesn't stop such that
a hyphen (-) would need to be typed.

For example (this is how I auto complete file names):

"ex" <TAB> completes to "extras" because the choices are
"extras.c" or "extras-addons.c" etc. Now you need to reach
away from the home row of a keyboard to type a "-" in
order to complete any of the submenu file names.

VS

"ex" <TAB> completes to "extras-". You only need to reach
to type a "1" for one menu. There may be more than one
submenu and submenu names start with letters, which are
closer to the home row.
2023-01-07 07:40:45 -08:00
Eidolon
b57c92efd3 cxx: Convert sdl/i_video.cpp 2023-01-07 01:24:55 -06:00
Oni
cf609113f3 Merge branch 'lightsnake-polish' into 'master'
Lightsnake polish

Closes #309 and #299

See merge request KartKrew/Kart!870
2023-01-07 00:33:46 +00:00
toaster
9a1c377e30 Merge branch 'fix-tiregrease-offroad' into 'master'
Apply tiregrease exception to offroad TERRAIN

See merge request KartKrew/Kart!866
2023-01-06 15:14:34 +00:00
toaster
8cf5ebd564 Merge branch 'fix-comprevision-replays' into 'master'
Stricter compbranch and comprevision

Closes #398

See merge request KartKrew/Kart!864
2023-01-06 15:13:46 +00:00
toaster
f4071ce42f Fix getting race-endingly stuck in zoom tubes while respawning 2023-01-06 13:50:47 +00:00
toaster
6d1dd5f089 Fix player potentially getting stuck invisible while lightsnaking when not true death respawn 2023-01-06 13:43:11 +00:00
toaster
5e4a715394 Decrease spinouttimer every other tic in lightsnake, to a minimum of 1 to still prevent drop dashing
Resolves #309.
2023-01-06 13:30:34 +00:00
toaster
1213836564 Permit a lightsnaking player to go into RESPAWNST_DROP (the final second of lightsnake) early at any time after the initail bring-back-to-last-waypoint.
Needs balance testing, but resolves #299.
2023-01-06 13:20:04 +00:00
toaster
c068013022 Merge branch 'drmemory-cleanup' into 'master'
Clean up memory mishandling flagged by DrMemory

See merge request KartKrew/Kart!863
2023-01-06 12:07:10 +00:00
toaster
2fdf5de545 SetChannelsNum: Remove now-unused iterator variable 2023-01-06 11:58:42 +00:00
toaster
731446bb3e opendir: Eidolon suggestion for initialiser 2023-01-06 11:58:17 +00:00
toaster
3e9231f658 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into drmemory-cleanup 2023-01-06 11:53:58 +00:00
James R
4adc25eb74 Apply tiregrease exception to offroad TERRAIN 2023-01-05 19:21:32 -08:00
James R
c58628d1bd Remove non TERRAIN offroad particles
Fixes spectators generating offroad particles when
touching the ground.
2023-01-05 19:19:42 -08:00
James R
1f827a9c25 Omit hyphen in replay folder name if compbranch is empty (detached HEAD) 2023-01-05 18:36:41 -08:00
James R
94e3050f10 Do not overwrite compbranch in case of detached HEAD 2023-01-05 18:32:54 -08:00
James R
55636fa690 Separate git commit subject line from comprevision, add SRB2_COMP_NOTE 2023-01-05 18:32:20 -08:00
James R
f5b985bcc3 doomdef.h: refactor comptime externs 2023-01-05 18:30:12 -08:00
Sal
99e6301365 Merge branch 'fix-window-refocus' into 'master'
SDL: only react to window focus changes if state actually changes

See merge request KartKrew/Kart!859
2023-01-06 02:29:13 +00:00
James R
16ac11d76e sdl/i_main.cpp: guard entire init_exchndl behind _WIN32
Fixes -Wunused-function
2023-01-05 18:06:52 -08:00
James R
a345ccda68 Merge branch 'tunes-show-credit' into 'master'
Print musicdef along with tunes -show

See merge request KartKrew/Kart!854
2023-01-06 02:03:35 +00:00
James R
e1b7fd79ee Merge branch 'fix-format-truncation' 2023-01-05 18:02:50 -08:00
James R
645f9e7f46 Merge branch 'music-player-64-literal-fix' into 'master'
Fix audio/music_player.cpp compiler error on 64-bit

See merge request KartKrew/Kart!858
2023-01-06 02:01:29 +00:00
James R
ac250d45f1 Merge branch 'monitors' into 'master'
Monitors

See merge request KartKrew/Kart!845
2023-01-06 02:00:24 +00:00
James R
546b4dcb88 Merge branch 'save_p-unglobal' into 'master'
Make save_p / savebuffers not global

See merge request KartKrew/Kart!834
2023-01-06 01:02:07 +00:00
toaster
22b87e0f19 Consistency for mobjnum 0 meaning NULL
Moves `P_Net(Un)ArchiveTubeWaypoints` down the file to take advantage of `SaveMobjnum` inline.
2023-01-06 00:05:31 +00:00
toaster
5c1235407b Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into save_p-unglobal 2023-01-05 23:49:30 +00:00
toaster
ede0f56819 Revert all instances of P_SaveBufferFree(&demobuf) for now
g_demo.c is officially No Man's Land
2023-01-05 23:44:40 +00:00
toaster
724c9b774e Cleaner reference handling for the following extern-scope netsynced mobj_t*.
- `skyboxcenterpnts` and `skyboxviewpnts`
    - P_InitSkyboxPoint`, which calls `P_SetTarget`
- `waypoint->mobj`
    - Make sure NULL before using `P_SetTarget` on
- `tubewaypoints`
    - Use `P_SetTarget`
    - Use `UINT32_MAX` for the invalid mobjnum, since 0 is a valid one.
- `waypointcap` and `kitemcap`
    - NULL before reset

Our international nightmare is over.
2023-01-05 23:32:12 +00:00
Eidolon
1094f844a6 Merge branch 'loadlibrary-exchndl' into 'master'
core: load exchndl.dll at runtime, RINGRACERSWADDIR

See merge request KartKrew/Kart!857
2023-01-05 23:30:23 +00:00
Sal
eb68c15c96 Merge branch 'stairjank-falloff' into 'master'
Reduce stair janking loss of control if momentum angle drifts too far from facing angle

See merge request KartKrew/Kart!850
2023-01-05 22:37:55 +00:00
toaster
59d8c540d1 SetChannelsNum: Callocate sound channels, don't mallocate them 2023-01-05 22:14:31 +00:00
Sal
5ede1e5a18 Merge branch 'find-musicdef' into 'master'
Add S_FindMusicDef, function to find musicdef by name

See merge request KartKrew/Kart!860
2023-01-05 21:56:47 +00:00
toaster
89b77b6569 opendir: initialise dd_dta struct 2023-01-05 21:44:14 +00:00