aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJoost Peters2008-12-23 20:20:30 +0000
committerJoost Peters2008-12-23 20:20:30 +0000
commit1b33233e86dc31e15f422a8fc2d14ac0683ca77a (patch)
tree5a22a9b5cda4e6af52bdc748b7091a15282543a9 /engines
parente570d0942fc0489eaf3a15fb5836314c599cadb7 (diff)
downloadscummvm-rg350-1b33233e86dc31e15f422a8fc2d14ac0683ca77a.tar.gz
scummvm-rg350-1b33233e86dc31e15f422a8fc2d14ac0683ca77a.tar.bz2
scummvm-rg350-1b33233e86dc31e15f422a8fc2d14ac0683ca77a.zip
endian fixes
svn-id: r35506
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/bmv.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/tinsel/bmv.cpp b/engines/tinsel/bmv.cpp
index 15da5823fc..feac5d2c76 100644
--- a/engines/tinsel/bmv.cpp
+++ b/engines/tinsel/bmv.cpp
@@ -692,7 +692,7 @@ static int FollowingPacket(int thisPacket, bool bReallyImportant) {
if (nextReadSlot*SLOT_SIZE >= thisPacket && thisPacket+3 >= nextReadSlot*SLOT_SIZE)
return thisPacket + 3;
}
- length = *(int32 *)(bigBuffer + thisPacket + 1);
+ length = (int32)READ_LE_UINT32(bigBuffer + thisPacket + 1);
length &= 0x00ffffff;
return thisPacket + length + 4;
}
@@ -962,7 +962,7 @@ static bool DoBMVFrame(void) {
return true;
default:
- length = *(int *)(data + 1);
+ length = (int32)READ_LE_UINT32(data + 1);
length &= 0x00ffffff;
graphOffset = nextUseOffset + 4; // Skip command byte and length
@@ -998,7 +998,7 @@ static bool DoBMVFrame(void) {
}
if (*data & CD_XSCR) {
- xscr = *(signed short *)(bigBuffer + graphOffset);
+ xscr = (int16)READ_LE_UINT16(bigBuffer + graphOffset);
graphOffset += sz_XSCR_pkt; // Skip scroll offset
length -= sz_XSCR_pkt;
} else if (*data & BIT0)