aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/titanic.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-11 16:53:44 -0400
committerPaul Gilbert2016-09-11 16:53:44 -0400
commit7d9526f8880177c5afd0533cb43d3015de949124 (patch)
tree001eb601fd3d452fa07cf788bd918d043bc55acd /engines/titanic/titanic.h
parent7d5a064fe141925bfac617c3c964cbf5f1b38b04 (diff)
downloadscummvm-rg350-7d9526f8880177c5afd0533cb43d3015de949124.tar.gz
scummvm-rg350-7d9526f8880177c5afd0533cb43d3015de949124.tar.bz2
scummvm-rg350-7d9526f8880177c5afd0533cb43d3015de949124.zip
TITANIC: Simplify German version checks
Diffstat (limited to 'engines/titanic/titanic.h')
-rw-r--r--engines/titanic/titanic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/titanic/titanic.h b/engines/titanic/titanic.h
index ec015551b8..b0776c55a5 100644
--- a/engines/titanic/titanic.h
+++ b/engines/titanic/titanic.h
@@ -152,6 +152,11 @@ public:
Common::Language getLanguage() const;
/**
+ * Returns true if it's the German version
+ */
+ bool isGerman() const { return getLanguage() == Common::DE_DEU; }
+
+ /**
* Gets a random number
*/
uint getRandomNumber(uint max) { return _randomSource.getRandomNumber(max); }