fix for bug am46266: TFC team names not picking up

This commit is contained in:
David Anderson
2006-10-24 22:57:19 +00:00
parent 483403aa3a
commit a65d65bee4
2 changed files with 5 additions and 1 deletions

View File

@@ -92,9 +92,10 @@ void Client_ShowMenu(void* mValue)
}
}
extern bool g_bmod_tfc;
void Client_TeamInfo(void* mValue)
{
if (mPlayer) return;
if (mPlayer && !g_bmod_tfc) return;
static int index;
switch (mState++)
@@ -107,6 +108,7 @@ void Client_TeamInfo(void* mValue)
char* msg = (char*)mValue;
g_players[index].team.assign(msg);
g_teamsIds.registerTeam(msg, -1);
break;
}
}