fixed a bug where a Player would destroy a Gap as PlayerBases do

This commit is contained in:
Kjistóf 2016-05-14 10:44:36 +02:00
parent 7da9cf928e
commit 6c375f94bf
2 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,6 @@ public class Gap extends cicaprojekt.Tile {
public void onEntry(PlayerBase playerBase) { public void onEntry(PlayerBase playerBase) {
super.onEntry(playerBase); super.onEntry(playerBase);
playerBase.destroy(); playerBase.destroy();
Game.instance.playerBaseDestroyed(playerBase);
} }
public void onExit(PlayerBase playerBase) throws IllegalStateException { public void onExit(PlayerBase playerBase) throws IllegalStateException {

View File

@ -20,6 +20,7 @@ public class PlayerBase implements Destroyable {
public void destroy() { public void destroy() {
destroyed = true; destroyed = true;
Game.instance.playerBaseDestroyed(this);
} }
public Tile getCurrentTile() { public Tile getCurrentTile() {