aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/sprites.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sludge/sprites.cpp')
-rw-r--r--engines/sludge/sprites.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp
index b5a2ef96eb..51f3062a17 100644
--- a/engines/sludge/sprites.cpp
+++ b/engines/sludge/sprites.cpp
@@ -175,15 +175,12 @@ bool loadSpriteBank(int fileNum, spriteBank &loadhere, bool isFont) {
// version 3, sprite is png
if (spriteBankVersion == 3) {
+ debug("png sprite");
for (int i = 0; i < total; i++) {
- howmany = bigDataFile->readByte();
- startIndex = 1;
-
loadhere.sprites[i].xhot = getSigned(bigDataFile);
loadhere.sprites[i].yhot = getSigned(bigDataFile);
-
- if (!ImgLoader::loadPNGImage(bigDataFile, &loadhere.sprites[i].surface)) {
- return false;
+ if (!ImgLoader::loadPNGImage(bigDataFile, &loadhere.sprites[i].surface, false)) {
+ return fatal("fail to read png sprite");
}
}
finishAccess();