mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- give tiles a name
# Conflicts: # source/core/textures/buildtiles.cpp
This commit is contained in:
parent
e500db97b1
commit
bfd11f9cca
1 changed files with 4 additions and 1 deletions
|
@ -173,7 +173,10 @@ void BuildTiles::AddTiles (int firsttile, TArray<uint8_t>& 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);
|
||||
|
|
Loading…
Reference in a new issue