Fixed a string

This commit is contained in:
ChocoTaco 2019-01-02 23:16:55 -05:00
parent 62c0429f40
commit 9dd84a5a2b

View file

@ -13,24 +13,24 @@ function ActivateAntiCloak()
//echo("AntiCloakPlayerCount " @ $AntiCloakPlayerCount); //echo("AntiCloakPlayerCount " @ $AntiCloakPlayerCount);
//If server is in Tourny mode and the team population is lower than the AntiCloakPlayerCount cloak is not selectable. //If server is in Tourny mode and the team population is lower than the AntiCloakPlayerCount cloak is not selectable.
if( !$Host::TournamentMode && $TotalTeamPlayerCount < $Host::AntiCloakPlayerCount && !$CloakpackRunOnce ) if( !$Host::TournamentMode && $TotalTeamPlayerCount < $Host::AntiCloakPlayerCount && $CloakpackRunOnce !$= 0)
{ {
$InvBanList[CTF, "CloakingPack"] = true; $InvBanList[CTF, "CloakingPack"] = true;
if(!isActivePackage(DisableCloakPack)) if(!isActivePackage(DisableCloakPack))
activatePackage(DisableCloakPack); activatePackage(DisableCloakPack);
$CloakpackRunOnce = false; $CloakpackRunOnce = 0;
} }
//All other cases it is. //All other cases it is.
else if( $CloakpackRunOnce ) else if( $CloakpackRunOnce !$= 1 )
{ {
$InvBanList[CTF, "CloakingPack"] = false; $InvBanList[CTF, "CloakingPack"] = false;
if(isActivePackage(DisableCloakPack)) if(isActivePackage(DisableCloakPack))
deactivatePackage(DisableCloakPack); deactivatePackage(DisableCloakPack);
$CloakpackRunOnce = true; $CloakpackRunOnce = 1;
} }
} }
} }