v0.9.2: fixed incorrectly commited code change to Dungeon.switchlevel

This commit is contained in:
Evan Debenham 2021-02-02 22:49:18 -05:00
parent f9ba8f077a
commit 563258ecb3

View File

@ -381,7 +381,7 @@ public class Dungeon {
}
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;