diff options
author | Andrew Kurushin | 2004-12-29 22:00:47 +0000 |
---|---|---|
committer | Andrew Kurushin | 2004-12-29 22:00:47 +0000 |
commit | cc2f79394b3af2112c0d3f6eb5f6dddf80d736f6 (patch) | |
tree | 0acd62861832fbd6d5c2b21095fb7b4f4c9dcaea | |
parent | 41a5251e28898f4a34ab51c01325d61c2510daf8 (diff) | |
download | scummvm-rg350-cc2f79394b3af2112c0d3f6eb5f6dddf80d736f6.tar.gz scummvm-rg350-cc2f79394b3af2112c0d3f6eb5f6dddf80d736f6.tar.bz2 scummvm-rg350-cc2f79394b3af2112c0d3f6eb5f6dddf80d736f6.zip |
- fixing compilation
svn-id: r16376
-rw-r--r-- | saga/actor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp index 0efea40548..eb2ee67e64 100644 --- a/saga/actor.cpp +++ b/saga/actor.cpp @@ -942,7 +942,7 @@ bool Actor::actorWalkTo(uint16 actorId, const ActorLocation &toLocation) { bool extraEndNode; actor = getActor(actorId); - + if (actor == _protagonist) { _vm->_scene->setDoorState(2, 0xff); _vm->_scene->setDoorState(3, 0); @@ -950,7 +950,8 @@ bool Actor::actorWalkTo(uint16 actorId, const ActorLocation &toLocation) { _vm->_scene->setDoorState(2, 0); _vm->_scene->setDoorState(3, 0xff); } - + if (actorId == 2002) + debug("eah"); if (_vm->_scene->getMode() == SCENE_MODE_ISO) { //todo: it } else { @@ -1417,7 +1418,7 @@ void Actor::setActorPath(ActorData * actor, const Point &fromPoint, const Point removePathPoints(); _pathNodeIndex++; - last = min(_pathNodeIndex, PATH_NODE_MAX); + last = MIN(_pathNodeIndex, PATH_NODE_MAX); for (i = 0, node = _pathNodeList; i < last; i++, node++) { actor->addWalkPath(node->x, node->y); } @@ -1428,13 +1429,12 @@ void Actor::pathToNode() { Point point1, point2, delta; int direction; int i; - WORD nodeindex = 0; Point *point; PathNode *nodeList; _pathNodeIndex = 0; point= &_pathList[_pathListIndex]; - direction = 0, + direction = 0; _pathNodeList->x = point->x; _pathNodeList->y = point->y; |