Fix JoinTeam from UNA to T/CT (#76)

Related to https://github.com/s1lentq/ReGameDLL_CS/issues/75
This commit is contained in:
Iván Lo Giudice 2016-12-01 17:23:09 -03:00 committed by s1lentq
parent 0006bac1a0
commit 00579432d7

View File

@ -73,7 +73,7 @@ bool EXT_FUNC CCSPlayer::JoinTeam(TeamName team)
case CT: case CT:
case TERRORIST: case TERRORIST:
{ {
if (pPlayer->m_iTeam == SPECTATOR) if (pPlayer->m_iTeam == SPECTATOR || pPlayer->m_iTeam == UNASSIGNED)
{ {
// If they're switching into spectator, setup spectator properties.. // If they're switching into spectator, setup spectator properties..
pPlayer->m_bNotKilled = true; pPlayer->m_bNotKilled = true;