[common] fix bullet and tank collision with bricks under bonus

This commit is contained in:
2019-06-11 15:56:00 +03:00
parent a49d673f25
commit 2c42d993ca
3 changed files with 3 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
* [bug] (server) **grenade** bonus
* [bug] **clock** bonus for spawned tanks
* [feature] **shovel** bonus with armor bricks
* [feature] tanks and bullets speed balancing
* [bug] record system broken
* [feature] custom map size
* [bug] bullet and tank collision with bricks under bonus
* [feature] result frame update (next game select, only human player info)

View File

@@ -112,6 +112,7 @@ import ru.m.tankz.map.LevelMap;
break;
}
}
if (withCollision != null) break;
for (other in entities.iterator()) {
if (other != ent && other != null) {
@@ -120,7 +121,6 @@ import ru.m.tankz.map.LevelMap;
}
}
}
if (withCollision != null) break;
}

View File

@@ -68,7 +68,7 @@ class GameRunner extends Game implements EngineListener {
}
gameEventSignal.emit(EventUtil.buildBricksSpawn(engine.map));
gameEventSignal.emit(START(state));
//for (i in 0...10) spawnBonus("grenade");
//for (i in 0...10) spawnBonus();
}
private function spawn(task:SpawnTask):Void {