diff options
author | Nipun Garg | 2019-06-19 17:46:25 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:49 +0200 |
commit | 9fbdad25b300656f60963c94e42c51284b542067 (patch) | |
tree | 9c3793a27831a7aadf1526fb256e9d480f329841 | |
parent | b176af31e268ea888079a58df279e5de53b633c0 (diff) | |
download | scummvm-rg350-9fbdad25b300656f60963c94e42c51284b542067.tar.gz scummvm-rg350-9fbdad25b300656f60963c94e42c51284b542067.tar.bz2 scummvm-rg350-9fbdad25b300656f60963c94e42c51284b542067.zip |
HDB: Improve isDemo() function definition
-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 |