v0.6.0b: ensured the hero action is cleared when levels are changed

This commit is contained in:
Evan Debenham 2017-06-11 05:04:14 -04:00
parent 3b30bdca18
commit 804c3aea83

View File

@ -324,6 +324,8 @@ public class Dungeon {
Light light = hero.buff( Light.class );
hero.viewDistance = light == null ? level.viewDistance : Math.max( Light.DISTANCE, level.viewDistance );
hero.curAction = hero.lastAction = null;
observe();
try {
saveAll();