aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/detection.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-06-19 17:46:25 +0530
committerEugene Sandulenko2019-09-03 17:16:49 +0200
commit9fbdad25b300656f60963c94e42c51284b542067 (patch)
tree9c3793a27831a7aadf1526fb256e9d480f329841 /engines/hdb/detection.cpp
parentb176af31e268ea888079a58df279e5de53b633c0 (diff)
downloadscummvm-rg350-9fbdad25b300656f60963c94e42c51284b542067.tar.gz
scummvm-rg350-9fbdad25b300656f60963c94e42c51284b542067.tar.bz2
scummvm-rg350-9fbdad25b300656f60963c94e42c51284b542067.zip
HDB: Improve isDemo() function definition
Diffstat (limited to 'engines/hdb/detection.cpp')
-rw-r--r--engines/hdb/detection.cpp7
1 files changed, 2 insertions, 5 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