diff options
author | Filippos Karapetis | 2013-12-25 19:12:00 +0200 |
---|---|---|
committer | Filippos Karapetis | 2013-12-25 19:12:00 +0200 |
commit | 43c226436c5cb466fa066cbb8fad46477d73e31e (patch) | |
tree | 877310e4826794e7dbc04582fa5d401af328f6f6 /engines/neverhood/modules/module2600_sprites.cpp | |
parent | 6bbec02a6e45a728b2c0fde9ce96ef8cd4304bb4 (diff) | |
download | scummvm-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/module2600_sprites.cpp')
-rw-r--r-- | engines/neverhood/modules/module2600_sprites.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/neverhood/modules/module2600_sprites.cpp b/engines/neverhood/modules/module2600_sprites.cpp index 2c24b533f3..2506a6eb48 100644 --- a/engines/neverhood/modules/module2600_sprites.cpp +++ b/engines/neverhood/modules/module2600_sprites.cpp @@ -47,7 +47,7 @@ void SsScene2609Button::update() { sendMessage(_parentScene, 0x2001, 0); } else { setGlobalVar(V_WATER_RUNNING, 1); - sendMessage(_parentScene, 0x2002, 0); + sendMessage(_parentScene, NM_POSITION_CHANGE, 0); } } } @@ -88,7 +88,7 @@ AsScene2609Water::AsScene2609Water(NeverhoodEngine *vm) SetUpdateHandler(&AnimatedSprite::update); SetMessageHandler(&AsScene2609Water::handleMessage); if (getGlobalVar(V_WATER_RUNNING)) - sendMessage(this, 0x2002, 0); + sendMessage(this, NM_POSITION_CHANGE, 0); } AsScene2609Water::~AsScene2609Water() { @@ -103,7 +103,7 @@ uint32 AsScene2609Water::handleMessage(int messageNum, const MessageParam ¶m setVisible(false); _vm->_soundMan->stopSound(0xDC2769B0); break; - case 0x2002: + case NM_POSITION_CHANGE: startAnimation(0x9C210C90, 0, -1); setVisible(true); _vm->_soundMan->playSoundLooping(0xDC2769B0); |