Skip to content

Commit

Permalink
Fix cycle animated textures (HarbourMasters#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjoecox authored Jan 15, 2024
1 parent d77bf88 commit aaf3714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZAPD/ZTextureAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ void TextureScrollingParams::ParseRawData()

for (int i = 0; i < count; i++)
{
rows[i].xStep = BitConverter::ToUInt8BE(rawData, rawDataIndex + 4 * i);
rows[i].yStep = BitConverter::ToUInt8BE(rawData, rawDataIndex + 4 * i + 1);
rows[i].xStep = BitConverter::ToInt8BE(rawData, rawDataIndex + 4 * i);
rows[i].yStep = BitConverter::ToInt8BE(rawData, rawDataIndex + 4 * i + 1);
rows[i].width = BitConverter::ToUInt8BE(rawData, rawDataIndex + 4 * i + 2);
rows[i].height = BitConverter::ToUInt8BE(rawData, rawDataIndex + 4 * i + 3);
}
Expand Down

0 comments on commit aaf3714

Please sign in to comment.