fixed close spawn stuff

This commit is contained in:
Mini-Chiss 2015-07-29 14:25:15 +02:00
parent c9c3db70f3
commit 30f0b3cb60
2 changed files with 3 additions and 3 deletions

View File

@ -136,14 +136,14 @@ public class GameTeam
//Spawn near players //Spawn near players
if (Host.SpawnNearEnemies) if (Host.SpawnNearEnemies)
{ {
Location loc = UtilAlg.getLocationAwayFromPlayers(_spawns, Host.GetPlayers(true)); Location loc = UtilAlg.getLocationNearPlayers(_spawns, Host.GetPlayers(true), Host.GetPlayers(true));
if (loc != null) if (loc != null)
return loc; return loc;
} }
//Spawn away from players //Spawn away from players
else else
{ {
Location loc = UtilAlg.getLocationNearPlayers(_spawns, Host.GetPlayers(true), Host.GetPlayers(true)); Location loc = UtilAlg.getLocationAwayFromPlayers(_spawns, Host.GetPlayers(true));
if (loc != null) if (loc != null)
return loc; return loc;
} }

View File

@ -47,7 +47,7 @@ public class TeamSuperSmash extends SuperSmash
this.PlayersPerTeam = 2; this.PlayersPerTeam = 2;
this.FillTeamsInOrderToCount = 2; this.FillTeamsInOrderToCount = 2;
this.SpawnNearAllies = true; this.SpawnNearAlliesz = true;
this.DamageTeamSelf = false; this.DamageTeamSelf = false;
} }