mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Don't lose sv.recorders on map change
This fixes the "reconnect" (or anything else, for that matter) not being sent to qtv proxies after loading a level while the procies are connected.
This commit is contained in:
parent
b61a336d8a
commit
465d5572dd
1 changed files with 5 additions and 1 deletions
|
@ -307,6 +307,7 @@ SV_SpawnServer (const char *server)
|
|||
char *buf;
|
||||
edict_t *ent;
|
||||
int i;
|
||||
struct recorder_s *recorders;
|
||||
|
||||
Sys_DPrintf ("SpawnServer: %s\n", server);
|
||||
|
||||
|
@ -321,8 +322,11 @@ SV_SpawnServer (const char *server)
|
|||
Mod_ClearAll ();
|
||||
Hunk_FreeToLowMark (host_hunklevel);
|
||||
|
||||
// wipe the entire per-level structure
|
||||
// wipe the entire per-level structure, but don't lose sv.recorders
|
||||
// (good thing we're not multi-threaded FIXME?)
|
||||
recorders = sv.recorders;
|
||||
memset (&sv, 0, sizeof (sv));
|
||||
sv.recorders = recorders;
|
||||
|
||||
sv.datagram.maxsize = sizeof (sv.datagram_buf);
|
||||
sv.datagram.data = sv.datagram_buf;
|
||||
|
|
Loading…
Reference in a new issue