From af08c85986095470a08864b98564e08eff9d5ca1 Mon Sep 17 00:00:00 2001 From: Lukas Moungos Date: Sun, 1 Dec 2019 17:24:48 +0100 Subject: [PATCH] fix --- ReallifeGamemode.Server/Gangwar/Turf.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ReallifeGamemode.Server/Gangwar/Turf.cs b/ReallifeGamemode.Server/Gangwar/Turf.cs index 3e790f1b..ba06959d 100644 --- a/ReallifeGamemode.Server/Gangwar/Turf.cs +++ b/ReallifeGamemode.Server/Gangwar/Turf.cs @@ -38,7 +38,6 @@ namespace ReallifeGamemode.Server.Gangwar this.Att_Score = 5; this.Def_Score = 5; this.status = "normal"; - this.playerInside = new Client[0]; this.timer = null; } @@ -86,6 +85,7 @@ namespace ReallifeGamemode.Server.Gangwar private void update() { + /* try { Client[] owners = NAPI.Pools.GetAllPlayers().Where(c => c.GetUser().Faction.Name == this.Owner).ToArray(); @@ -102,13 +102,12 @@ namespace ReallifeGamemode.Server.Gangwar i++; } } - /* if (owners.Length > attackers.Length) this.Att_Score -= owners.Length - attackers.Length; if(owners.Length < attackers.Length) this.Def_Score -= attackers.Length - owners.Length; */ - foreach (Client gangwarPlayer in this.playerInGangwar) + foreach (Client gangwarPlayer in this.playerInGangwar) { gangwarPlayer.TriggerEvent("CLIENT:ScoreUpdate", JsonConvert.SerializeObject(this.Att_Score), JsonConvert.SerializeObject(this.Def_Score), JsonConvert.SerializeObject(this.TurfID)); }