diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2024-01-15 20:11:29 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-15 15:11:29 -0500 |
| commit | aaf3714f239b80e86ad508b1a715506589624ef2 (patch) | |
| tree | 91bb63367cc8ee86e38ec0ff71e047c8f7e8798a /ZAPD/ZTextureAnimation.cpp | |
| parent | d77bf8826e6a2dfa2554e7b53aa1cc5a460d5e63 (diff) | |
Fix cycle animated textures (#4)
Diffstat (limited to 'ZAPD/ZTextureAnimation.cpp')
| -rw-r--r-- | ZAPD/ZTextureAnimation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ZAPD/ZTextureAnimation.cpp b/ZAPD/ZTextureAnimation.cpp index 239cdd9..07ae223 100644 --- a/ZAPD/ZTextureAnimation.cpp +++ b/ZAPD/ZTextureAnimation.cpp @@ -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); } |
