Fix restoring old fs_game upon leaving a server. Patch by Ensiform.

This commit is contained in:
Zack Middleton 2012-10-30 16:51:06 +00:00
parent 17ee96e6c8
commit 016b74b633
3 changed files with 14 additions and 10 deletions

View file

@ -280,6 +280,7 @@ extern clientConnection_t clc;
the clientStatic_t structure is never wiped, and is used even when
no client connection is active at all
(except when CL_Shutdown is called)
==================================================================
*/
@ -338,9 +339,6 @@ typedef struct {
serverInfo_t favoriteServers[MAX_OTHER_SERVERS];
int pingUpdateSource; // source currently pinging or updating
char oldGame[MAX_QPATH];
qboolean oldGameSet;
// update server info
netadr_t updateServer;
@ -358,6 +356,9 @@ typedef struct {
extern clientStatic_t cls;
extern char cl_oldGame[MAX_QPATH];
extern qboolean cl_oldGameSet;
//=============================================================================
extern vm_t *cgvm; // interface to cgame dll or vm