mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 19:39:04 +07:00
"Fixed" some bugs
This commit is contained in:
parent
52bd079c0a
commit
22328772ca
@ -83,7 +83,7 @@ public class WaveSpawner{
|
||||
int addGround = groundGroups - groundSpawns.size, addFly = flyGroups - flySpawns.size;
|
||||
|
||||
//add extra groups if the total exceeds it
|
||||
if(!dynamicSpawn){
|
||||
if(dynamicSpawn){
|
||||
for(int i = 0; i < addGround; i++){
|
||||
GroundSpawn spawn = new GroundSpawn();
|
||||
findLocation(spawn);
|
||||
|
@ -331,6 +331,7 @@ public abstract class InputHandler extends InputAdapter{
|
||||
for(Tile tile : state.teams.get(player.getTeam()).cores){
|
||||
if(tile.distanceTo(x * tilesize, y * tilesize) < coreBuildRange){
|
||||
//TODO terrible hack
|
||||
//this might actually screw things up on the logic thread.
|
||||
try{
|
||||
return Build.validPlace(player.getTeam(), x, y, type, rotation) &&
|
||||
Vector2.dst(player.x, player.y, x * tilesize, y * tilesize) < Player.placeDistance;
|
||||
|
Loading…
Reference in New Issue
Block a user