[Scummvm-cvs-logs] CVS: scummvm object.cpp,1.37,1.38

Drigo Zoxx drigo at users.sourceforge.net
Fri Mar 8 15:54:02 CET 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv8773

Modified Files:
	object.cpp 
Log Message:
Fix in getObjectXYpos which occured on big endian machines (for macos support)

Index: object.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/object.cpp,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** object.cpp	8 Mar 2002 20:57:09 -0000	1.37
--- object.cpp	8 Mar 2002 23:53:14 -0000	1.38
***************
*** 158,163 ****
  			}
                  } else {
!                         x = (int16)READ_LE_UINT16(&od->walk_x);
!                         y = (int16)READ_LE_UINT16(&od->walk_y);
                  }
  		_xPos = x;
--- 158,163 ----
  			}
                  } else {
!                         x = od->walk_x;
! 						y = od->walk_y;
                  }
  		_xPos = x;
***************
*** 165,170 ****
  		_dir = oldDirToNewDir(od->actordir&3);
          } else {
!                 x = (int16)READ_LE_UINT32(&od->walk_x);
!                 y = (int16)READ_LE_UINT16(&od->walk_y);
                  _xPos = x;
                  _yPos = y;
--- 165,170 ----
  		_dir = oldDirToNewDir(od->actordir&3);
          } else {
!                 x = od->walk_x;
! 				y = od->walk_y;
                  _xPos = x;
                  _yPos = y;





More information about the Scummvm-git-logs mailing list