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:
parent
d591079731
commit
10577d2e95
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
/*
|
||||
==================
|
||||
|
|
Loading…
Reference in a new issue