diff options
Diffstat (limited to 'engines/hdb/draw-manager.cpp')
-rw-r--r-- | engines/hdb/draw-manager.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index 56d53bbdbd..35c2b4ce4a 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -98,6 +98,20 @@ Tile *DrawMan::getTile(int index) { return _tLookupArray[index].tData; } +int DrawMan::isSky(int index) { + if (!index) { + return 0; + } + + for (int i = 0; i < kMaxSkies; i++) { + if(_skyTiles[i] == index) { + return index + 1; // The skyTiles are indexed from 1. 0 => No Sky tile + } + } + + return 0; +} + Picture::~Picture() { _surface.free(); } |