v0.9.4: properly fixed issues with ankh revives and FOV-granting allies

This commit is contained in:
Evan Debenham 2021-08-03 18:25:32 -04:00
parent 462960a08d
commit 36dcb43213
2 changed files with 7 additions and 1 deletions

View File

@ -376,7 +376,8 @@ public class Dungeon {
hero.viewDistance = light == null ? level.viewDistance : Math.max( Light.DISTANCE, level.viewDistance );
hero.curAction = hero.lastAction = null;
observe();
try {
saveAll();
} catch (IOException e) {

View File

@ -1125,6 +1125,11 @@ public abstract class Mob extends Char {
ally.pos = pos;
}
if (ally.sprite != null) ally.sprite.place(ally.pos);
if (ally.fieldOfView == null || ally.fieldOfView.length != level.length()){
ally.fieldOfView = new boolean[level.length()];
}
Dungeon.level.updateFieldOfView( ally, ally.fieldOfView );
}
}