Fixes the enemy skin on team mates bug molgrum moaned at me about

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2875 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2008-01-23 21:04:16 +00:00
parent d591079731
commit 10577d2e95

View file

@ -1356,10 +1356,12 @@ void CL_CheckServerInfo(void)
char *s;
unsigned int allowed;
int oldstate;
int oldteamplay;
qboolean oldallowshaders;
oldallowshaders = cls.allow_shaders;
oldteamplay = cl.teamplay;
cl.teamplay = atoi(Info_ValueForKey(cl.serverinfo, "teamplay"));
cl.deathmatch = atoi(Info_ValueForKey(cl.serverinfo, "deathmatch"));
@ -1511,6 +1513,8 @@ void CL_CheckServerInfo(void)
if (oldallowshaders != cls.allow_shaders)
Cache_Flush(); //this will cause all models to be reloaded.
if (oldteamplay != cl.teamplay)
Skin_FlushPlayers();
}
/*
==================