v0.3.1: fixed a bug where heaps seen by anything woul register as seen by the hero

This commit is contained in:
Evan Debenham 2015-08-14 21:57:51 -04:00 committed by Evan Debenham
parent d7e849b3ab
commit eaf84f4274

View File

@ -971,7 +971,7 @@ public abstract class Level implements Bundlable {
}
for (Heap heap : heaps.values())
if (!heap.seen && fieldOfView[heap.pos])
if (!heap.seen && fieldOfView[heap.pos] && c == Dungeon.hero)
heap.seen = true;
return fieldOfView;