quake3live/code/server
serge_shubin c6af63ae42 SNAPFLAG_RESET_ENTITIES: no-interpolation reset without gamestate resend
Replace the gamestate resend approach for map_restart with a custom
snapshot flag (SNAPFLAG_RESET_ENTITIES, bit 4 in snapFlags byte).

Server side (sv_netdemo.c):
- On restart frame, OR the flag into svs.snapFlagServerBit (one-shot)
- Cleared at the start of the next playback frame

Client side (cg_snapshot.c):
- CG_SetNextSnap: clear currentValid for all entities when flag is set,
  making them all "new" — existing interpolation check at line 228
  sets interpolate=qfalse, CG_TransitionEntity calls CG_ResetEntity
- Also set cg.nextFrameTeleport=qtrue to prevent playerstate
  interpolation during follow mode

No loading screen, no lost frames, no gamestate resend. Entities and
playerstate both snap to correct positions on map_restart.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 00:19:36 +08:00
..
server.h SNAPFLAG_RESET_ENTITIES: no-interpolation reset without gamestate resend 2026-03-24 00:19:36 +08:00
sv_bot.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
sv_ccmds.c Fix 8 netdemo bugs found in code review 2026-03-23 05:03:33 +08:00
sv_client.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +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 Pause demo playback when no spectators are watching 2026-03-23 06:25:16 +08:00
sv_main.c Start demo playback only when spectator enters game 2026-03-23 23:46:46 +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 SNAPFLAG_RESET_ENTITIES: no-interpolation reset without gamestate resend 2026-03-24 00:19:36 +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