Update ObserveFlag.cs

This commit is contained in:
ChocoTaco1 2021-02-23 16:52:21 -05:00
parent 222d27dc00
commit 4ed6a7675c

View file

@ -132,7 +132,7 @@ if (!isActivePackage(PizzaThings))
function serverCmdObserveFirstFlag(%client)
{
if(Game.class !$= CTFGame || Game.class !$= SCtFGame)
if(Game.class !$= CTFGame && Game.class !$= SCtFGame)
return;
// client must be an observer
@ -150,7 +150,7 @@ function serverCmdObserveFirstFlag(%client)
function serverCmdObserveSecondFlag(%client)
{
if(Game.class !$= CTFGame || Game.class !$= SCtFGame)
if(Game.class !$= CTFGame && Game.class !$= SCtFGame)
return;
// client must be an observer
@ -174,7 +174,7 @@ function observeFlag(%client, %target, %type, %flagTeam)
if(!isObject(%client) || !isObject(%target) || !isObject(%client.camera))
return;
if(Game.class !$= CTFGame || Game.class !$= SCtFGame)
if(Game.class !$= CTFGame && Game.class !$= SCtFGame)
return;
if(%client.team > 0)