quake3live/code/server
serge_shubin a8bfa738b0 Fix seeking: snapshot timing, backwards time, entity cleanup
Server:
- Reset nextSnapshotTime for active clients after seek so
  SV_SendClientMessages doesn't skip sending (was comparing
  future nextSnapshotTime against past svs.time)
- First frame always a keyframe (beginning seekable)
- Keyframes during normal playback only reset delta state,
  no SNAPFLAG_RESET_ENTITIES (no visual glitch every 5 sec)

Engine client:
- Reset cl.oldFrameServerTime on SERVERCOUNT toggle to prevent
  "time went backwards" error in CL_SetCGameTime

cgame:
- Handle backwards time in CG_ProcessSnapshots for demo seek:
  accept the time jump, reset cg.time, clear all entity state
  (currentValid, interpolate, time-dependent fields), clear
  local entities (particles, gibs, smoke), wait for next snapshot
- Prevents CG_InterpolateEntityPosition NULL nextSnap error

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 19:31:47 +08:00
..
lz4.c Add LZ4 compression library (r131) 2026-03-24 02:42:47 +08:00
lz4.h Add LZ4 compression library (r131) 2026-03-24 02:42:47 +08:00
server.h Keyframe recording and seeking 2026-03-24 18:55:44 +08:00
sv_bot.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
sv_ccmds.c Keyframe recording and seeking 2026-03-24 18:55:44 +08:00
sv_client.c Fix follow mode switching and PVS during pause 2026-03-24 04:31:39 +08:00
sv_game.c Fix chat capture: capture any target, deduplicate in buffer 2026-03-23 05:55:19 +08:00
sv_init.c Keyframe recording and seeking 2026-03-24 18:55:44 +08:00
sv_main.c Demo pause: freeze svs.time, hold demo data consumption 2026-03-24 03:28:32 +08:00
sv_net_chan.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
sv_netdemo.c Fix seeking: snapshot timing, backwards time, entity cleanup 2026-03-24 19:31:47 +08:00
sv_rankings.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
sv_snapshot.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
sv_world.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00