From 115d24b9976b779055616d93c50feb8f75c1f78d Mon Sep 17 00:00:00 2001 From: BotoX Date: Mon, 2 Dec 2019 23:32:16 +0100 Subject: [PATCH] fix broken zm mode --- src/zr/zspawn.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/zr/zspawn.inc b/src/zr/zspawn.inc index 1aac8aa..60d2ffc 100644 --- a/src/zr/zspawn.inc +++ b/src/zr/zspawn.inc @@ -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; }