- animation fix.

This commit is contained in:
Christoph Oelckers 2020-05-24 14:23:39 +02:00
parent d6786cf0eb
commit 2c5737795f

View file

@ -178,7 +178,7 @@ void BuildTiles::AddTiles (int firsttile, TArray<uint8_t>& RawData, bool permap)
auto tex = GetTileTexture("", RawData, uint32_t(tiledata - tiles), width, height, anm);
AddTile(i, tex);
int leftoffset, topoffset;
auto PicAnim = tileConvertAnimFormat(anm, &leftoffset, &topoffset);
this->tiledata[i].picanm = tileConvertAnimFormat(anm, &leftoffset, &topoffset);
tex->SetOffsets(leftoffset, topoffset);
tiledata += size;