From a502a7a365ee4ed6f3ab833b11ec1f9003597a4d Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 27 Aug 2009 12:31:42 +0000 Subject: Slight formatting and changed searchHotspot to be const. svn-id: r43770 --- engines/gob/hotspots.cpp | 2 +- engines/gob/hotspots.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/gob/hotspots.cpp b/engines/gob/hotspots.cpp index 4da2262eb1..e65ad13088 100644 --- a/engines/gob/hotspots.cpp +++ b/engines/gob/hotspots.cpp @@ -1564,7 +1564,7 @@ int16 Hotspots::findCursor(uint16 x, uint16 y) const { return cursor; } -bool Hotspots::searchHotspot(int16 shortId) { +bool Hotspots::searchHotspot(int16 shortId) const { for (int i = 0; i < kHotspotCount; i++) { if (_hotspots[i].isDisabled()) return false; diff --git a/engines/gob/hotspots.h b/engines/gob/hotspots.h index 25e77d526b..707a912ed5 100644 --- a/engines/gob/hotspots.h +++ b/engines/gob/hotspots.h @@ -102,7 +102,7 @@ public: int16 findCursor(uint16 x, uint16 y) const; /** Check the existance of a hotspot based on its short Id */ - bool searchHotspot (int16 shortId); + bool searchHotspot(int16 shortId) const; private: struct Hotspot { -- cgit v1.2.3