diff --git a/tools/editor/editor_app.cpp b/tools/editor/editor_app.cpp index 64c8a7e6..b20d15c4 100644 --- a/tools/editor/editor_app.cpp +++ b/tools/editor/editor_app.cpp @@ -552,6 +552,10 @@ void EditorApp::loadADT(const std::string& mapName, int tileX, int tileY) { return; } + // Override internal coords with what we know from the filename + // (instanced maps have arbitrary internal coord values) + terrain_.coord = {tileX, tileY}; + terrainEditor_.setTerrain(&terrain_); terrainEditor_.history().clear(); texturePainter_.setTerrain(&terrain_);