From 8c59f8deac6da7fd3b46234b70ca1cea428ca1f5 Mon Sep 17 00:00:00 2001 From: yinsimei Date: Tue, 30 May 2017 09:59:56 +0200 Subject: SLUDGE: Replace sludge stream reading functions by scummvm ones --- engines/sludge/sprites.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sludge/sprites.cpp') diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp index 5b372e6ece..069d97f54b 100644 --- a/engines/sludge/sprites.cpp +++ b/engines/sludge/sprites.cpp @@ -130,13 +130,13 @@ bool loadSpriteBank(int fileNum, spriteBank &loadhere, bool isFont) { loadhere.isFont = isFont; - total = get2bytes(bigDataFile); + total = bigDataFile->readUint16BE(); if (! total) { spriteBankVersion = fgetc(bigDataFile); if (spriteBankVersion == 1) { total = 0; } else { - total = get2bytes(bigDataFile); + total = bigDataFile->readUint16BE(); } } @@ -223,8 +223,8 @@ bool loadSpriteBank(int fileNum, spriteBank &loadhere, bool isFont) { break; } case 2: - picwidth = get2bytes(bigDataFile); - picheight = get2bytes(bigDataFile); + picwidth = bigDataFile->readUint16BE(); + picheight = bigDataFile->readUint16BE(); loadhere.sprites[i].xhot = getSigned(bigDataFile); loadhere.sprites[i].yhot = getSigned(bigDataFile); break; -- cgit v1.2.3