diff --git a/source/core/textures/buildtiles.cpp b/source/core/textures/buildtiles.cpp index f70bffca0..9feec4851 100644 --- a/source/core/textures/buildtiles.cpp +++ b/source/core/textures/buildtiles.cpp @@ -173,7 +173,10 @@ void BuildTiles::AddTiles (int firsttile, TArray& RawData, bool permap) if (width <= 0 || height <= 0) continue; - auto tex = GetTileTexture("", RawData, uint32_t(tiledata - tiles), width, height); + FString texname; + if (mapname) texname.Format("maptile_%s_%05d", mapname, i); + else texname.Format("#%05d", i); + auto tex = GetTileTexture(texname, RawData, uint32_t(tiledata - tiles), width, height); AddTile(i, tex); int leftoffset, topoffset; this->tiledata[i].picanmbackup = this->tiledata[i].picanm = tileConvertAnimFormat(anm, &leftoffset, &topoffset);