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
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)
return loc;
}
//Spawn away from players
else
{
Location loc = UtilAlg.getLocationNearPlayers(_spawns, Host.GetPlayers(true), Host.GetPlayers(true));
Location loc = UtilAlg.getLocationAwayFromPlayers(_spawns, Host.GetPlayers(true));
if (loc != null)
return loc;
}

View File

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