quake3live/code/client
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
..
cl_cgame.c Client-owned camera for demo spectator 2026-03-24 03:51:51 +08:00
cl_cin.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cl_console.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cl_input.c Client-owned camera for demo spectator 2026-03-24 03:51:51 +08:00
cl_keys.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cl_main.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cl_net_chan.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cl_parse.c Fix seeking: snapshot timing, backwards time, entity cleanup 2026-03-24 19:31:47 +08:00
cl_scrn.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cl_ui.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
client.h Client-owned camera for demo spectator 2026-03-24 03:51:51 +08:00
keys.h Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
snd_adpcm.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
snd_dma.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
snd_local.h Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
snd_mem.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
snd_mix.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
snd_public.h Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
snd_wavelet.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00