v0.6.2: fixed a rare visual bug with dropped items

This commit is contained in:
Evan Debenham 2017-10-20 00:13:22 -04:00
parent 3fff744394
commit c249a52f41

View File

@ -669,6 +669,7 @@ public abstract class Level implements Bundlable {
heap = new Heap();
heap.seen = Dungeon.level == this && heroFOV[cell];
heap.pos = cell;
heap.drop(item);
if (map[cell] == Terrain.CHASM || (Dungeon.level != null && pit[cell])) {
Dungeon.dropToChasm( item );
GameScene.discard( heap );
@ -685,8 +686,9 @@ public abstract class Level implements Bundlable {
} while (!passable[n] && !avoid[n]);
return drop( item, n );
} else {
heap.drop(item);
}
heap.drop(item);
if (Dungeon.level != null) {
press( cell, null );