Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/tile_sheets/aztec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: aztec
tile_size: 32
path: assets/gfx/tiles/default_aztec.png
path: ../assets/gfx/tiles/default_aztec.png
tiles:
- id: 70
x: 1
Expand Down
2 changes: 2 additions & 0 deletions editor/editor_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ void EditorWindow::add_tile_buttons() {
YAML::Node map_data = YAML::LoadFile(fileInfo.absoluteFilePath().toStdString());

QString map_image_path = QString::fromStdString(map_data["path"].as<std::string>());
map_image_path = map_image_path.replace("../", "");

int tile_size = map_data["tile_size"].as<int>();

for (const auto& tile_data: map_data["tiles"]) {
Expand Down