diff options
-rw-r--r-- | engines/cge2/cge2.h | 2 | ||||
-rw-r--r-- | engines/cge2/snail.cpp | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/engines/cge2/cge2.h b/engines/cge2/cge2.h index c02b01c33a..62d57fb63a 100644 --- a/engines/cge2/cge2.h +++ b/engines/cge2/cge2.h @@ -181,7 +181,7 @@ public: void snSlave(Sprite *spr, int val); void snTrans(Sprite *spr, int val); void snPort(Sprite *spr, int val); - void snMouse(int val); + void snMouse(bool on); void snNNext(Sprite *spr, Action act, int val); void snRNNext(Sprite *spr, int val); void snRMTNext(Sprite *spr, int val); diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp index d40789c6d1..b7731aebb8 100644 --- a/engines/cge2/snail.cpp +++ b/engines/cge2/snail.cpp @@ -534,8 +534,11 @@ void CGE2Engine::snPort(Sprite *spr, int val) { warning("STUB: CGE2Engine::snPort()"); } -void CGE2Engine::snMouse(int val) { - warning("STUB: CGE2Engine::snMouse()"); +void CGE2Engine::snMouse(bool on) { + if (on) + _mouse->on(); + else + _mouse->off(); } void CGE2Engine::snNNext(Sprite *spr, Action act, int val) { |