diff options
author | Paul Gilbert | 2007-11-17 10:21:27 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-11-17 10:21:27 +0000 |
commit | 2e3866b6f4717212a61c79b3ff368b937405336e (patch) | |
tree | 4650ffcbfe15dfa4bdc09047b10d5227b7dc37a1 /engines/lure/res_struct.cpp | |
parent | a3abaaa70973f7ca0567a2b3b9b9eb2c0dd13fee (diff) | |
download | scummvm-rg350-2e3866b6f4717212a61c79b3ff368b937405336e.tar.gz scummvm-rg350-2e3866b6f4717212a61c79b3ff368b937405336e.tar.bz2 scummvm-rg350-2e3866b6f4717212a61c79b3ff368b937405336e.zip |
Identified some more Endian issues (thanks to Max)
svn-id: r29533
Diffstat (limited to 'engines/lure/res_struct.cpp')
-rw-r--r-- | engines/lure/res_struct.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/lure/res_struct.cpp b/engines/lure/res_struct.cpp index ae229fa4e4..076e691d42 100644 --- a/engines/lure/res_struct.cpp +++ b/engines/lure/res_struct.cpp @@ -113,14 +113,14 @@ RoomExitHotspotData::RoomExitHotspotData(RoomExitHotspotResource *rec) { // Room exit class RoomExitData::RoomExitData(RoomExitResource *rec) { - xs = READ_LE_UINT16(&rec->xs); - ys = READ_LE_UINT16(&rec->ys); - xe = READ_LE_UINT16(&rec->xe); - ye = READ_LE_UINT16(&rec->ye); + xs = READ_LE_INT16(&rec->xs); + ys = READ_LE_INT16(&rec->ys); + xe = READ_LE_INT16(&rec->xe); + ye = READ_LE_INT16(&rec->ye); sequenceOffset = READ_LE_UINT16(&rec->sequenceOffset); roomNumber = rec->newRoom; - x = rec->newRoomX; - y = rec->newRoomY; + x = READ_LE_INT16(&rec->newRoomX); + y = READ_LE_INT16(&rec->newRoomY); switch (rec->direction) { case 0x80: |