v0.7.0: scrolls of passage now return the hero to a level's entrance

This commit is contained in:
Evan Debenham 2018-10-01 03:39:33 -04:00
parent 2b90528004
commit e9976beefd

View File

@ -363,7 +363,7 @@ public class Dungeon {
public static void switchLevel( final Level level, int pos ) { public static void switchLevel( final Level level, int pos ) {
if (pos < 0 || pos >= level.length()){ if (pos < 0 || pos >= level.length()){
pos = level.exit; pos = level.entrance;
} }
PathFinder.setMapSize(level.width(), level.height()); PathFinder.setMapSize(level.width(), level.height());