diff options
Diffstat (limited to 'engines/neverhood')
-rw-r--r-- | engines/neverhood/mouse.cpp | 6 | ||||
-rw-r--r-- | engines/neverhood/mouse.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/neverhood/mouse.cpp b/engines/neverhood/mouse.cpp index bce66467de..8cd5e602fb 100644 --- a/engines/neverhood/mouse.cpp +++ b/engines/neverhood/mouse.cpp @@ -42,7 +42,7 @@ Mouse::Mouse(NeverhoodEngine *vm, uint32 fileHash, const NRect &mouseRect) Mouse::Mouse(NeverhoodEngine *vm, uint32 fileHash, int16 x1, int16 x2) : StaticSprite(vm, 2000), _mouseType(kMouseType435), - _mouseCursorResource(vm), _frameNum(0), _x1(x1), _x2(x2), _visible(true) { + _mouseCursorResource(vm), _frameNum(0), _x1(x1), _x2(x2), _visible(false) { init(fileHash); if (_x <= _x1) { @@ -63,6 +63,10 @@ Mouse::Mouse(NeverhoodEngine *vm, uint32 fileHash, int type) _mouseCursorResource.setCursorNum(0); } +Mouse::~Mouse() { + CursorMan.showMouse(false); +} + void Mouse::init(uint32 fileHash) { _mouseCursorResource.load(fileHash); _x = _vm->getMouseX(); diff --git a/engines/neverhood/mouse.h b/engines/neverhood/mouse.h index a163a7a01c..2b0e8b720e 100644 --- a/engines/neverhood/mouse.h +++ b/engines/neverhood/mouse.h @@ -41,6 +41,7 @@ public: Mouse(NeverhoodEngine *vm, uint32 fileHash, const NRect &mouseRect); Mouse(NeverhoodEngine *vm, uint32 fileHash, int16 x1, int16 x2); Mouse(NeverhoodEngine *vm, uint32 fileHash, int _type); + virtual ~Mouse(); void load(uint32 fileHash); void updateCursor(); protected: |