v0.9.2: fixed incorrectly commited code change to Dungeon.switchlevel
This commit is contained in:
parent
f9ba8f077a
commit
563258ecb3
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user