v0.6.2: fixed a rare visual bug with dropped items
This commit is contained in:
parent
3fff744394
commit
c249a52f41
|
@ -669,6 +669,7 @@ public abstract class Level implements Bundlable {
|
||||||
heap = new Heap();
|
heap = new Heap();
|
||||||
heap.seen = Dungeon.level == this && heroFOV[cell];
|
heap.seen = Dungeon.level == this && heroFOV[cell];
|
||||||
heap.pos = cell;
|
heap.pos = cell;
|
||||||
|
heap.drop(item);
|
||||||
if (map[cell] == Terrain.CHASM || (Dungeon.level != null && pit[cell])) {
|
if (map[cell] == Terrain.CHASM || (Dungeon.level != null && pit[cell])) {
|
||||||
Dungeon.dropToChasm( item );
|
Dungeon.dropToChasm( item );
|
||||||
GameScene.discard( heap );
|
GameScene.discard( heap );
|
||||||
|
@ -685,13 +686,14 @@ public abstract class Level implements Bundlable {
|
||||||
} while (!passable[n] && !avoid[n]);
|
} while (!passable[n] && !avoid[n]);
|
||||||
return drop( item, n );
|
return drop( item, n );
|
||||||
|
|
||||||
|
} else {
|
||||||
|
heap.drop(item);
|
||||||
}
|
}
|
||||||
heap.drop(item);
|
|
||||||
|
|
||||||
if (Dungeon.level != null) {
|
if (Dungeon.level != null) {
|
||||||
press( cell, null );
|
press( cell, null );
|
||||||
}
|
}
|
||||||
|
|
||||||
return heap;
|
return heap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user