Real object ids, fixed warping bug
This commit is contained in:
@@ -103,8 +103,8 @@ impl Widget for BoardWidget<'_> {
|
||||
// Resolve which glyph wins this cell: player > object > grid floor.
|
||||
let glyph = if board.player.x == bx as i32 && board.player.y == by as i32 {
|
||||
Glyph::player()
|
||||
} else if let Some(obj) = board.object_at(bx, by) {
|
||||
obj.glyph
|
||||
} else if let Some(id) = board.object_ids_at(bx, by).get(0) {
|
||||
board.objects[id].glyph
|
||||
} else {
|
||||
// Static layer: the grid archetype's glyph, or the floor layer
|
||||
// for an empty cell (see `Board::display_glyph`).
|
||||
|
||||
Reference in New Issue
Block a user