diff options
| author | ilotterytea <iltsu@alright.party> | 2025-02-01 23:31:16 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-02-01 23:31:16 +0500 |
| commit | a3ecc099aa0048ad0068a41c3e20cd3c463e09f4 (patch) | |
| tree | 8e3c8b047f614f20b02d8727e9a13c4eb089e5cc | |
| parent | 8b515204de68d67f59410cc9c9c38855df7ce283 (diff) | |
fix: wrong tile type identification
| -rw-r--r-- | src/editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editor.cpp b/src/editor.cpp index 97979fb..1929f7f 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -72,9 +72,9 @@ namespace silly::editor { if (this->selectedTile.has_value()) { TilesetTile *t = this->selectedTile->get(); - if (t->id == TILE_FLOOR) { + if (t->type == TILE_FLOOR) { ImGui::Text("FLOOR"); - } else if (t->id == TILE_WALL) { + } else if (t->type == TILE_WALL) { ImGui::Text("WALL"); } else { ImGui::Text("UNKNOWN"); |
