aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/modules/module2500.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2013-12-25 19:12:00 +0200
committerFilippos Karapetis2013-12-25 19:12:00 +0200
commit43c226436c5cb466fa066cbb8fad46477d73e31e (patch)
tree877310e4826794e7dbc04582fa5d401af328f6f6 /engines/neverhood/modules/module2500.cpp
parent6bbec02a6e45a728b2c0fde9ce96ef8cd4304bb4 (diff)
downloadscummvm-rg350-43c226436c5cb466fa066cbb8fad46477d73e31e.tar.gz
scummvm-rg350-43c226436c5cb466fa066cbb8fad46477d73e31e.tar.bz2
scummvm-rg350-43c226436c5cb466fa066cbb8fad46477d73e31e.zip
NEVERHOOD: Change more message values to enums
Diffstat (limited to 'engines/neverhood/modules/module2500.cpp')
-rw-r--r--engines/neverhood/modules/module2500.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/neverhood/modules/module2500.cpp b/engines/neverhood/modules/module2500.cpp
index 945cb4e1a5..eb1b65cd83 100644
--- a/engines/neverhood/modules/module2500.cpp
+++ b/engines/neverhood/modules/module2500.cpp
@@ -295,12 +295,12 @@ Scene2501::Scene2501(NeverhoodEngine *vm, Module *parentModule, int which)
if (which >= 0 && _tracks[_currTrackIndex]->which2 == which) {
NPoint testPoint = (*_trackPoints)[_trackPoints->size() - 1];
- sendMessage(_asCar, 0x2002, _trackPoints->size() - 1);
+ sendMessage(_asCar, NM_POSITION_CHANGE, _trackPoints->size() - 1);
if (testPoint.x < 0 || testPoint.x >= 640 || testPoint.y < 0 || testPoint.y >= 480)
sendMessage(_asCar, NM_CAR_MOVE_TO_PREV_POINT, 150);
} else {
NPoint testPoint = (*_trackPoints)[0];
- sendMessage(_asCar, 0x2002, 0);
+ sendMessage(_asCar, NM_POSITION_CHANGE, 0);
if (testPoint.x < 0 || testPoint.x >= 640 || testPoint.y < 0 || testPoint.y >= 480)
sendMessage(_asCar, NM_CAR_MOVE_TO_NEXT_POINT, 150);
}
@@ -460,9 +460,9 @@ void Scene2501::changeTrack() {
_trackPoints = _dataResource.getPointArray(_tracks[_currTrackIndex]->trackPointsName);
_asCar->setPathPoints(_trackPoints);
if (_currTrackIndex == 0)
- sendMessage(_asCar, 0x2002, _trackPoints->size() - 1);
+ sendMessage(_asCar, NM_POSITION_CHANGE, _trackPoints->size() - 1);
else
- sendMessage(_asCar, 0x2002, 0);
+ sendMessage(_asCar, NM_POSITION_CHANGE, 0);
sendPointMessage(_asCar, 0x2004, _clickPoint);
_newTrackIndex = -1;
}