quake3live/code
serge_shubin a1167ff398 Fix 8 netdemo bugs found in code review
1. File handle leak: SVD_Play_f opened file twice, first handle leaked.
   Fix: memset demo state before opening.

2. svdemo_stop now handles both recording and playback via SVD_Stop_f.
   Playback stop disconnects client to return to menu.

3. Zombie client timeout: skip SV_CheckTimeouts during playback so
   reserved player slots aren't freed.

4. Buffer overflow: increase entity buffer to MAX_GENTITIES*300 and
   playerState buffer to MAX_CLIENTS*600 for worst-case first frame.
   Made static to avoid stack overflow.

5. svs.time jump: don't overwrite svs.time with recorded time.
   Server time advances normally, avoiding timeout/heartbeat issues.

6. map_restart: SVD_ResetDeltaState clears entity/player delta state
   so next frame writes full states, preventing corrupt deltas.

7. Demo end and manual stop both disconnect the client.

8. SV_Shutdown cleans up active recording/playback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 05:03:33 +08:00
..
botlib Migrate to Visual Studio 2022: replace .vcproj with .vcxproj, add .gitignore 2026-03-18 13:36:28 +08:00
bspc Migrate to Visual Studio 2022: replace .vcproj with .vcxproj, add .gitignore 2026-03-18 13:36:28 +08:00
cgame Copy game/cgame/ui to missionpack/ for TA configurations 2026-03-18 16:06:35 +08:00
client Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
game Add player follow mode during demo playback 2026-03-23 04:52:58 +08:00
jpeg-6 Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
macosx Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
null Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
q3_ui Copy game/cgame/ui to missionpack/ for TA configurations 2026-03-18 16:06:35 +08:00
qcommon QL movement foundation: auto-hop, PM_Jump/PM_CanJump extraction, lastJumpTime 2026-03-21 05:45:18 +08:00
renderer Migrate to Visual Studio 2022: replace .vcproj with .vcxproj, add .gitignore 2026-03-18 13:36:28 +08:00
server Fix 8 netdemo bugs found in code review 2026-03-23 05:03:33 +08:00
splines Migrate to Visual Studio 2022: replace .vcproj with .vcxproj, add .gitignore 2026-03-18 13:36:28 +08:00
ui Build system cleanup: rename to quake3live.exe, fix DLL loading, default to missionpack 2026-03-20 18:17:28 +08:00
unix Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
win32 Input sticky buttons fixed 2026-03-21 20:51:28 +08:00
cgame.lnt Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
clean.bat Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
Construct Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
game.lnt Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
installdebug.bat Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
installrelease.bat Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
installvms.bat Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
Makefile Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
opts.lnt Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
quake3.sln Build system cleanup: rename to quake3live.exe, fix DLL loading, default to missionpack 2026-03-20 18:17:28 +08:00
quake3.vcxproj Server-side demo recording and playback (netdemo) 2026-03-23 04:28:55 +08:00
quake3.vcxproj.filters Migrate to Visual Studio 2022: replace .vcproj with .vcxproj, add .gitignore 2026-03-18 13:36:28 +08:00
renderer.lnt Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
run.bat Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
runrelease.bat Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00