mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 23:11:12 -08:00
Hide drop zone warning if you're part of the wave team (#1492)
This commit is contained in:
parent
9f20ff151c
commit
4c369dd17c
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ public class WaveSpawner{
|
|||
|
||||
/** @return true if the player is near a ground spawn point. */
|
||||
public boolean playerNear(){
|
||||
return groundSpawns.contains(g -> Mathf.dst(g.x * tilesize, g.y * tilesize, player.x, player.y) < state.rules.dropZoneRadius);
|
||||
return groundSpawns.contains(g -> Mathf.dst(g.x * tilesize, g.y * tilesize, player.x, player.y) < state.rules.dropZoneRadius && player.getTeam() != state.rules.waveTeam);
|
||||
}
|
||||
|
||||
public void spawnEnemies(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue