aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/gamemodule.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2014-01-06 14:37:56 +0100
committerTorbjörn Andersson2014-01-06 14:37:56 +0100
commitab17bfb3d64a175dd5b6586b09789d784baa0b19 (patch)
tree867d3e8bf924d92911d3624dd66654aba564ee7f /engines/neverhood/gamemodule.cpp
parent0176d343bcc11cd1993587697edd065b03302c24 (diff)
downloadscummvm-rg350-ab17bfb3d64a175dd5b6586b09789d784baa0b19.tar.gz
scummvm-rg350-ab17bfb3d64a175dd5b6586b09789d784baa0b19.tar.bz2
scummvm-rg350-ab17bfb3d64a175dd5b6586b09789d784baa0b19.zip
NEVERHOOD: Use constants for messages in a couple of places
Ideally, we should always use constants of course. But I guess we don't yet have sensible names for all messages.
Diffstat (limited to 'engines/neverhood/gamemodule.cpp')
-rw-r--r--engines/neverhood/gamemodule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/neverhood/gamemodule.cpp b/engines/neverhood/gamemodule.cpp
index 31eee4da55..45f9465a11 100644
--- a/engines/neverhood/gamemodule.cpp
+++ b/engines/neverhood/gamemodule.cpp
@@ -95,7 +95,7 @@ void GameModule::handleMouseMove(int16 x, int16 y) {
mousePos.x = x;
mousePos.y = y;
debug(2, "GameModule::handleMouseMove(%d, %d)", x, y);
- sendPointMessage(_childObject, 0, mousePos);
+ sendPointMessage(_childObject, NM_MOUSE_MOVE, mousePos);
}
}
@@ -115,7 +115,7 @@ void GameModule::handleMouseUp(int16 x, int16 y) {
mousePos.x = x;
mousePos.y = y;
debug(2, "GameModule::handleMouseUp(%d, %d)", x, y);
- sendPointMessage(_childObject, 0x0002, mousePos);
+ sendPointMessage(_childObject, NM_MOUSE_RELEASE, mousePos);
}
}