From c10fae6f77e62af95d6b9f1f36a4e923e43158d0 Mon Sep 17 00:00:00 2001 From: CroniX Date: Sat, 8 May 2021 23:53:07 +0200 Subject: [PATCH] Try to fix sigas kacka - add another wt waypoint - danke an balbo --- ReallifeGamemode.Server/WeaponDeal/WeaponDealPoints.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ReallifeGamemode.Server/WeaponDeal/WeaponDealPoints.cs b/ReallifeGamemode.Server/WeaponDeal/WeaponDealPoints.cs index 78a83f3e..7e6faa10 100644 --- a/ReallifeGamemode.Server/WeaponDeal/WeaponDealPoints.cs +++ b/ReallifeGamemode.Server/WeaponDeal/WeaponDealPoints.cs @@ -17,7 +17,6 @@ namespace ReallifeGamemode.Server.WeaponDeal new Vector3(-2174.734, 4269.301, 46.95574), //Army Base new Vector3(2530.14, 2617.15, 35.76), new Vector3(-3179.78, 820.08, 1.59), - new Vector3(-1889.91, 2045.6, 138.68) }.AsReadOnly(); public static readonly IReadOnlyCollection StaatsFrakWT_Route = new List @@ -34,16 +33,16 @@ namespace ReallifeGamemode.Server.WeaponDeal if (factionID == 1 | factionID == 3) { Random rnd = new Random(); - factionWeaponDeal[factionID] = rnd.Next(0, StaatsFrakWT_Route.Count - 1); + factionWeaponDeal[factionID] = rnd.Next(0, StaatsFrakWT_Route.Count); return StaatsFrakWT_Route.ElementAt(factionWeaponDeal[factionID]); } else { Random rnd = new Random(); - factionWeaponDeal[factionID] = rnd.Next(0, WT_Route.Count - 1); + factionWeaponDeal[factionID] = rnd.Next(0, WT_Route.Count); return WT_Route.ElementAt(factionWeaponDeal[factionID]); } - + /* if (factionWeaponDeal[factionID] == -1) { Random rnd = new Random();