[common] fix bullet and tank collision with bricks under bonus
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user