aboutsummaryrefslogtreecommitdiff
path: root/object.cpp
diff options
context:
space:
mode:
authorVincent Hamm2002-03-23 20:34:47 +0000
committerVincent Hamm2002-03-23 20:34:47 +0000
commitccf69ad76bb6a2c8b7d8889deb12cac16a7475c3 (patch)
tree0761aee166e662c373fb781c0b67970b21057507 /object.cpp
parent7b1bbf81e0bfdd3d88ebb8603f4a11fb554126d3 (diff)
downloadscummvm-rg350-ccf69ad76bb6a2c8b7d8889deb12cac16a7475c3.tar.gz
scummvm-rg350-ccf69ad76bb6a2c8b7d8889deb12cac16a7475c3.tar.bz2
scummvm-rg350-ccf69ad76bb6a2c8b7d8889deb12cac16a7475c3.zip
Changed the way games are detected. Now the detection is done out of the scumm object. We can now create de good scumm object depending of the game detected. Warning: the implementation is not yet finalised and the in game gui is more broken than ever....
svn-id: r3802
Diffstat (limited to 'object.cpp')
-rw-r--r--object.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/object.cpp b/object.cpp
index 7c3ec7cd5c..e6e439db23 100644
--- a/object.cpp
+++ b/object.cpp
@@ -135,9 +135,9 @@ void Scumm::getObjectXYPos(int object) {
ImageHeader *imhd;
int x,y;
- if(!(_features & GF_SMALL_HEADER)) {
- if (_features&GF_AFTER_V6) {
- state = getState(object)-1;
+ if(!(_features & GF_SMALL_HEADER)) {
+ if (_features&GF_AFTER_V6) {
+ state = getState(object)-1;
if (state<0)
state = 0;
@@ -159,14 +159,14 @@ void Scumm::getObjectXYPos(int object) {
}
} else {
x = od->walk_x;
- y = od->walk_y;
+ y = od->walk_y;
}
_xPos = x;
_yPos = y;
_dir = oldDirToNewDir(od->actordir&3);
} else {
x = od->walk_x;
- y = od->walk_y;
+ y = od->walk_y;
_xPos = x;
_yPos = y;
_dir= oldDirToNewDir(od->actordir&3);