From 93dda1b227fa11d1da2d923ca63a580343f6ba4e Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Wed, 6 Jun 2012 01:47:43 +0200 Subject: GOB: const correctness --- engines/gob/minigames/geisha/evilfish.cpp | 2 +- engines/gob/minigames/geisha/evilfish.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/gob/minigames') diff --git a/engines/gob/minigames/geisha/evilfish.cpp b/engines/gob/minigames/geisha/evilfish.cpp index c7ef9d5622..05ae9d0ad4 100644 --- a/engines/gob/minigames/geisha/evilfish.cpp +++ b/engines/gob/minigames/geisha/evilfish.cpp @@ -171,7 +171,7 @@ void EvilFish::mutate(uint16 animSwimLeft, uint16 animSwimRight, } } -bool EvilFish::isDead() { +bool EvilFish::isDead() const { return !isVisible() || (_state == kStateNone) || (_state == kStateDie); } diff --git a/engines/gob/minigames/geisha/evilfish.h b/engines/gob/minigames/geisha/evilfish.h index 81efb676e2..4c82629461 100644 --- a/engines/gob/minigames/geisha/evilfish.h +++ b/engines/gob/minigames/geisha/evilfish.h @@ -58,7 +58,7 @@ public: uint16 animTurnLeft, uint16 animTurnRight, uint16 animDie); /** Is the fish dead? */ - bool isDead(); + bool isDead() const; private: enum State { -- cgit v1.2.3