fix broken zm mode

This commit is contained in:
BotoX 2019-12-02 23:32:16 +01:00
parent d1daaee1a7
commit 115d24b997
1 changed files with 3 additions and 4 deletions

View File

@ -599,6 +599,9 @@ ZSpawnCondition:GetZSpawnCondition(int client)
case ZSpawn_Human:
{
condition = ZSpawn_Human;
// Client has been infected this round, respawning as a zombie.
if(condition == ZSpawn_Human && g_bZSpawnClientInfected[client])
condition = ZSpawn_Zombie;
}
case ZSpawn_Zombie:
{
@ -608,9 +611,5 @@ ZSpawnCondition:GetZSpawnCondition(int client)
}
}
// Client has been infected this round, respawning as a zombie.
if(condition == ZSpawn_Human && g_bZSpawnClientInfected[client])
condition = ZSpawn_Zombie;
return condition;
}