From 35da8e2e6772db058568940a00a2e151858c32aa Mon Sep 17 00:00:00 2001 From: fgsfds Date: Tue, 22 Aug 2023 19:48:22 +0200 Subject: [PATCH] port: fix animated textures in Attack Ship patch submitted by Ryan --- src/game/texdecompress.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/texdecompress.c b/src/game/texdecompress.c index 7a13b9fe3..d786854a9 100644 --- a/src/game/texdecompress.c +++ b/src/game/texdecompress.c @@ -1832,9 +1832,9 @@ s32 texInflateLookupFromBuffer(u8 *src, s32 width, s32 height, u8 *dst, u8 *look for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { if (numcolours <= 256) { - dst16[x] = lookup16[src8[x]]; + dst16[x] = PD_BE16(lookup16[src8[x]]); } else { - dst16[x] = lookup16[src16[x]]; + dst16[x] = PD_BE16(lookup16[src16[x]]); } } @@ -1848,9 +1848,9 @@ s32 texInflateLookupFromBuffer(u8 *src, s32 width, s32 height, u8 *dst, u8 *look for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { if (numcolours <= 256) { - dst16[x] = lookup16[src8[x]] << 1 | 1; + dst16[x] = PD_BE16(lookup16[src8[x]] << 1 | 1); } else { - dst16[x] = lookup16[src16[x]] << 1 | 1; + dst16[x] = PD_BE16(lookup16[src16[x]] << 1 | 1); } }