v0.9.4: properly fixed issues with ankh revives and FOV-granting allies
This commit is contained in:
parent
462960a08d
commit
36dcb43213
|
@ -376,7 +376,8 @@ public class Dungeon {
|
||||||
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;
|
hero.curAction = hero.lastAction = null;
|
||||||
|
|
||||||
|
observe();
|
||||||
try {
|
try {
|
||||||
saveAll();
|
saveAll();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
|
@ -1125,6 +1125,11 @@ public abstract class Mob extends Char {
|
||||||
ally.pos = pos;
|
ally.pos = pos;
|
||||||
}
|
}
|
||||||
if (ally.sprite != null) ally.sprite.place(ally.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 );
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user