diff options
author | Johannes Schickel | 2009-08-27 12:31:42 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-08-27 12:31:42 +0000 |
commit | a502a7a365ee4ed6f3ab833b11ec1f9003597a4d (patch) | |
tree | cc7e1100fa9c442994a12cd4d7e0bf087eaaf3ab | |
parent | 3e0d3ed380678b142b43bbbf264a1dcb797e7226 (diff) | |
download | scummvm-rg350-a502a7a365ee4ed6f3ab833b11ec1f9003597a4d.tar.gz scummvm-rg350-a502a7a365ee4ed6f3ab833b11ec1f9003597a4d.tar.bz2 scummvm-rg350-a502a7a365ee4ed6f3ab833b11ec1f9003597a4d.zip |
Slight formatting and changed searchHotspot to be const.
svn-id: r43770
-rw-r--r-- | engines/gob/hotspots.cpp | 2 | ||||
-rw-r--r-- | 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 { |