aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/draw-manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/draw-manager.cpp')
-rw-r--r--engines/hdb/draw-manager.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp
index 1ab2868d9a..85ee4ec9aa 100644
--- a/engines/hdb/draw-manager.cpp
+++ b/engines/hdb/draw-manager.cpp
@@ -26,18 +26,20 @@ namespace HDB {
DrawMan::DrawMan() {
_systemInit = false;
- cursorDisplay = true;
}
bool DrawMan::init() {
+
+ _numTiles = g_hdb->_fileMan->getCount("t32_", TYPE_TILE32);
+
+ if (!_numTiles) {
+ return false;
+ }
+
_systemInit = true;
return true;
}
-void DrawMan::loadTile32(char *name, uint32 *length) {
-
-}
-
Picture::~Picture() {
_surface.free();
}