mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-01-16 08:40:57 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user