diff options
author | Enrico Rolfi | 2002-03-08 23:53:14 +0000 |
---|---|---|
committer | Enrico Rolfi | 2002-03-08 23:53:14 +0000 |
commit | c2e7fba23ad3ea5dd62988efa420292951c7611f (patch) | |
tree | ca7cfa909bad799a0fc2a83f12dee9800181edcf | |
parent | a82706f20c22163adb8786a1137bee190bdb9225 (diff) | |
download | scummvm-rg350-c2e7fba23ad3ea5dd62988efa420292951c7611f.tar.gz scummvm-rg350-c2e7fba23ad3ea5dd62988efa420292951c7611f.tar.bz2 scummvm-rg350-c2e7fba23ad3ea5dd62988efa420292951c7611f.zip |
Fix in getObjectXYpos which occured on big endian machines (for macos support)
svn-id: r3695
-rw-r--r-- | object.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/object.cpp b/object.cpp index cbda40f2cb..08f717bf18 100644 --- a/object.cpp +++ b/object.cpp @@ -157,15 +157,15 @@ void Scumm::getObjectXYPos(int object) { y = od->y_pos + (int16)READ_LE_UINT16(&imhd->old.hotspot[state].y); } } else { - x = (int16)READ_LE_UINT16(&od->walk_x); - y = (int16)READ_LE_UINT16(&od->walk_y); + x = od->walk_x; + y = od->walk_y; } _xPos = x; _yPos = y; _dir = oldDirToNewDir(od->actordir&3); } else { - x = (int16)READ_LE_UINT32(&od->walk_x); - y = (int16)READ_LE_UINT16(&od->walk_y); + x = od->walk_x; + y = od->walk_y; _xPos = x; _yPos = y; _dir= oldDirToNewDir(od->actordir&3); |