Bugfix: Make sure that all areas are respawned on the map where the player ends up on after getting killed.

This commit is contained in:
Oskar Wiksten
2012-09-15 09:28:25 +02:00
parent dbff72968a
commit f6b1455d5f
2 changed files with 2 additions and 4 deletions

View File

@@ -148,8 +148,8 @@ public final class WorldSetup {
Context ctx = androidContext.get();
world.model = new ModelContainer();
world.model.player.initializeNewPlayer(world.itemTypes, world.dropLists, newHeroName);
Controller.playerRested(world, null);
MovementController.respawnPlayer(ctx.getResources(), world);
Controller.playerRested(world, null);
}

View File

@@ -88,9 +88,7 @@ public final class Controller {
for (PredefinedMap m : world.maps.predefinedMaps) {
m.resetTemporaryData();
}
if (area != null) {
world.model.currentMap.spawnAll(world);
}
world.model.currentMap.spawnAll(world);
}
public static void ui_playerRested(final Activity currentActivity, final ViewContext viewContext, MapObject area) {