diff options
author | johndoe123 | 2012-10-08 17:39:15 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:44:40 +0200 |
commit | 016638bd9ef38e1d46ae855ee1944ff149c11310 (patch) | |
tree | f2fca535aea46f7d319acd94e3e90db142f34173 /engines/neverhood | |
parent | 5aee04b127f96305542d7b37d33f57c5dfc0f9ec (diff) | |
download | scummvm-rg350-016638bd9ef38e1d46ae855ee1944ff149c11310.tar.gz scummvm-rg350-016638bd9ef38e1d46ae855ee1944ff149c11310.tar.bz2 scummvm-rg350-016638bd9ef38e1d46ae855ee1944ff149c11310.zip |
NEVERHOOD: Rename stuff in Module2700
- Also fix the clipRect in Scene2701
Diffstat (limited to 'engines/neverhood')
-rw-r--r-- | engines/neverhood/gamemodule.cpp | 4 | ||||
-rw-r--r-- | engines/neverhood/module2700.cpp | 18 | ||||
-rw-r--r-- | engines/neverhood/module2700.h | 4 |
3 files changed, 13 insertions, 13 deletions
diff --git a/engines/neverhood/gamemodule.cpp b/engines/neverhood/gamemodule.cpp index 5bcd29a25b..807d6e17c1 100644 --- a/engines/neverhood/gamemodule.cpp +++ b/engines/neverhood/gamemodule.cpp @@ -310,8 +310,8 @@ void GameModule::startup() { #if 1 _vm->gameState().which = 0; - _vm->gameState().sceneNum = 11; - createModule(2800, -1); + _vm->gameState().sceneNum = 0; + createModule(2700, -1); #endif #if 0 _vm->gameState().sceneNum = 0; diff --git a/engines/neverhood/module2700.cpp b/engines/neverhood/module2700.cpp index 73ea264392..983e265125 100644 --- a/engines/neverhood/module2700.cpp +++ b/engines/neverhood/module2700.cpp @@ -591,7 +591,7 @@ Scene2701::Scene2701(NeverhoodEngine *vm, Module *parentModule, int which) : Scene(vm, parentModule, true) { Sprite *tempSprite; - + NRect clipRect; SceneInfo2700 *sceneInfo = _vm->_staticData->getSceneInfo2700(0x004B2240); setGlobalVar(0x21E60190, 1); @@ -608,7 +608,7 @@ Scene2701::Scene2701(NeverhoodEngine *vm, Module *parentModule, int which) tempSprite = insertStaticSprite(0x1E086325, 1200); - clipRect.set(0, 0, 640, tempSprite->getDrawRect().x2()); + clipRect.set(0, 0, 640, tempSprite->getDrawRect().y2()); if (sceneInfo->class437Filename) { @@ -625,7 +625,7 @@ Scene2701::Scene2701(NeverhoodEngine *vm, Module *parentModule, int which) } _asCarConnector = insertSprite<AsCommonCarConnector>(_asCar); - + _which1 = sceneInfo->which1; _which2 = sceneInfo->which2; @@ -649,15 +649,15 @@ Scene2701::Scene2701(NeverhoodEngine *vm, Module *parentModule, int which) _asCarConnector->setClipRect(clipRect); if (which == 1) { - SetMessageHandler(&Scene2701::handleMessage42F500); + SetMessageHandler(&Scene2701::hmRidingCar); } else { sendMessage(_asCar, 0x2009, 0); - SetMessageHandler(&Scene2701::handleMessage42F600); + SetMessageHandler(&Scene2701::hmCarAtHome); } } -uint32 Scene2701::handleMessage42F500(int messageNum, const MessageParam ¶m, Entity *sender) { +uint32 Scene2701::hmRidingCar(int messageNum, const MessageParam ¶m, Entity *sender) { Scene::handleMessage(messageNum, param, sender); switch (messageNum) { case 0x0001: @@ -665,7 +665,7 @@ uint32 Scene2701::handleMessage42F500(int messageNum, const MessageParam ¶m, break; case 0x2005: if (_which1 >= 0) - SetMessageHandler(&Scene2701::handleMessage42F600); + SetMessageHandler(&Scene2701::hmCarAtHome); break; case 0x2006: if (_which2 >= 0) @@ -678,7 +678,7 @@ uint32 Scene2701::handleMessage42F500(int messageNum, const MessageParam ¶m, return 0; } -uint32 Scene2701::handleMessage42F600(int messageNum, const MessageParam ¶m, Entity *sender) { +uint32 Scene2701::hmCarAtHome(int messageNum, const MessageParam ¶m, Entity *sender) { Scene::handleMessage(messageNum, param, sender); switch (messageNum) { case 0x0001: @@ -686,7 +686,7 @@ uint32 Scene2701::handleMessage42F600(int messageNum, const MessageParam ¶m, leaveScene(0); } else { sendPointMessage(_asCar, 0x2004, param.asPoint()); - SetMessageHandler(&Scene2701::handleMessage42F500); + SetMessageHandler(&Scene2701::hmRidingCar); } break; case 0x200D: diff --git a/engines/neverhood/module2700.h b/engines/neverhood/module2700.h index 4274bcce05..d11586ea3e 100644 --- a/engines/neverhood/module2700.h +++ b/engines/neverhood/module2700.h @@ -94,8 +94,8 @@ protected: Sprite *_asCarConnector; int _which1, _which2; NPointArray *_trackPoints; - uint32 handleMessage42F500(int messageNum, const MessageParam ¶m, Entity *sender); - uint32 handleMessage42F600(int messageNum, const MessageParam ¶m, Entity *sender); + uint32 hmRidingCar(int messageNum, const MessageParam ¶m, Entity *sender); + uint32 hmCarAtHome(int messageNum, const MessageParam ¶m, Entity *sender); }; class Scene2702 : public Scene { |