v0.9.2: fixed incorrectly commited code change to Dungeon.switchlevel
This commit is contained in:
@@ -381,7 +381,7 @@ public class Dungeon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Light light = hero.buff( Light.class );
|
Light light = hero.buff( Light.class );
|
||||||
hero.viewDistance = 2;
|
hero.viewDistance = light == null ? level.viewDistance : Math.max( Light.DISTANCE, level.viewDistance );
|
||||||
|
|
||||||
hero.curAction = hero.lastAction = null;
|
hero.curAction = hero.lastAction = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user