From 13c2e816911364686092d672887558b9612bdb5e Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Tue, 12 Dec 2023 13:53:38 +0000 Subject: [PATCH] Change: Support decoding 32bpp-only NewGRFs. --- src/sprites.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sprites.cpp b/src/sprites.cpp index 575debb7..751c6dc3 100644 --- a/src/sprites.cpp +++ b/src/sprites.cpp @@ -394,14 +394,14 @@ int decodesprite(FILE *grf, spritestorage *imgpal, spritestorage *imgrgba, sprit printf("\nError: cannot decode 32bpp sprites to pcx\n"); exit(2); } - writesprite(false, imgrgba, writer, imgbuffer, info); + writesprite(i == 0, imgrgba, writer, imgbuffer, info); } else if (info.depth==DEPTH_MASK) { if (imgrgba == NULL) { printf("\nError: cannot decode 32bpp sprites to pcx\n"); exit(2); } info.depth=DEPTH_32BPP; - writesprite(false, imgrgba, writer, imgbuffer, info); + writesprite(i == 0, imgrgba, writer, imgbuffer, info); info.depth=DEPTH_MASK; writesprite(false, imgpal, writer, imgbuffer, info); } else if (info.depth==DEPTH_8BPP) {