v0.6.0b: ensured the hero action is cleared when levels are changed
This commit is contained in:
@@ -324,6 +324,8 @@ public class Dungeon {
|
|||||||
Light light = hero.buff( Light.class );
|
Light light = hero.buff( Light.class );
|
||||||
hero.viewDistance = light == null ? level.viewDistance : Math.max( Light.DISTANCE, level.viewDistance );
|
hero.viewDistance = light == null ? level.viewDistance : Math.max( Light.DISTANCE, level.viewDistance );
|
||||||
|
|
||||||
|
hero.curAction = hero.lastAction = null;
|
||||||
|
|
||||||
observe();
|
observe();
|
||||||
try {
|
try {
|
||||||
saveAll();
|
saveAll();
|
||||||
|
|||||||
Reference in New Issue
Block a user