aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/fan_decrease.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/game/fan_decrease.cpp')
-rw-r--r--engines/titanic/game/fan_decrease.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/titanic/game/fan_decrease.cpp b/engines/titanic/game/fan_decrease.cpp
index 2049b1ebc9..b0b9cc585f 100644
--- a/engines/titanic/game/fan_decrease.cpp
+++ b/engines/titanic/game/fan_decrease.cpp
@@ -24,6 +24,10 @@
namespace Titanic {
+BEGIN_MESSAGE_MAP(CFanDecrease, CGameObject)
+ ON_MESSAGE(MouseButtonDownMsg)
+END_MESSAGE_MAP()
+
void CFanDecrease::save(SimpleFile *file, int indent) {
file->writeNumberLine(1, indent);
CGameObject::save(file, indent);
@@ -34,4 +38,11 @@ void CFanDecrease::load(SimpleFile *file) {
CGameObject::load(file);
}
+bool CFanDecrease::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
+ CStatusChangeMsg statusMsg;
+ statusMsg._newStatus = 2;
+ statusMsg.execute("FanController");
+ return true;
+}
+
} // End of namespace Titanic