diff options
-rw-r--r-- | engines/hdb/detection.cpp | 7 | ||||
-rw-r--r-- | engines/hdb/hdb.h | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/engines/hdb/detection.cpp b/engines/hdb/detection.cpp index f38d972ce7..5169450910 100644 --- a/engines/hdb/detection.cpp +++ b/engines/hdb/detection.cpp @@ -38,11 +38,8 @@ uint32 HDBGame::getGameFlags() const { return _gameDescription->flags; } -int HDBGame::isDemo() const { - if (getGameFlags() & ADGF_DEMO) { - return 1; - } - return 0; +bool HDBGame::isDemo() const { + return (getGameFlags() & ADGF_DEMO); } } // End of namespace HDB diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 6cad15168a..d7ef7164fb 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -93,7 +93,7 @@ public: const char *getGameFile() const; uint32 getGameFlags() const; Common::Platform getPlatform() const; - int isDemo() const; + bool isDemo() const; /* Game System Pointers |