From aaf3714f239b80e86ad508b1a715506589624ef2 Mon Sep 17 00:00:00 2001 From: Garrett Cox Date: Mon, 15 Jan 2024 20:11:29 +0000 Subject: [PATCH] Fix cycle animated textures (#4) --- ZAPD/ZTextureAnimation.cpp | 4 ++-- 1 file 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); }