diff options
author | Ludvig Strigeus | 2001-10-17 12:37:50 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2001-10-17 12:37:50 +0000 |
commit | 8c0c299a8506db5fab398c84ee4bbaffce9986c9 (patch) | |
tree | 16077f6197d85090c2249153327f6cd981164692 | |
parent | 424caf8e7dec966657a11288702c79fd231e6bce (diff) | |
download | scummvm-rg350-8c0c299a8506db5fab398c84ee4bbaffce9986c9.tar.gz scummvm-rg350-8c0c299a8506db5fab398c84ee4bbaffce9986c9.tar.bz2 scummvm-rg350-8c0c299a8506db5fab398c84ee4bbaffce9986c9.zip |
fixed big endian bug
svn-id: r3440
-rw-r--r-- | object.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/object.cpp b/object.cpp index 23ba1fc87b..a3e936e524 100644 --- a/object.cpp +++ b/object.cpp @@ -17,6 +17,9 @@ * * Change Log: * $Log$ + * Revision 1.5 2001/10/17 12:37:50 strigeus + * fixed big endian bug + * * Revision 1.4 2001/10/16 12:20:18 strigeus * made files compile on unix * @@ -152,8 +155,8 @@ void Scumm::getObjectXYPos(int object) { } imhd = (ImageHeader*)findResource2(MKID('IMHD'), ptr); - x = od->x_pos*8 + imhd->hotspot[state].x; - y = od->y_pos*8 + imhd->hotspot[state].y; + x = od->x_pos*8 + (int16)READ_LE_UINT16(&imhd->hotspot[state].x); + y = od->y_pos*8 + (int16)READ_LE_UINT16(&imhd->hotspot[state].y); abr = adjustXYToBeInBox(0, x, y); _xPos = abr.x; |