aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core/game_object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/core/game_object.cpp')
-rw-r--r--engines/titanic/core/game_object.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp
index 12d4c5603a..a61dd17003 100644
--- a/engines/titanic/core/game_object.cpp
+++ b/engines/titanic/core/game_object.cpp
@@ -1442,7 +1442,7 @@ void CGameObject::resetMail() {
mailMan->resetValue();
}
-int CGameObject::getNewRandomNumber(int max, int *oldVal) {
+int CGameObject::getRandomNumber(int max, int *oldVal) {
if (oldVal) {
int startingVal = *oldVal;
while (*oldVal == startingVal && max > 0)
@@ -1608,10 +1608,9 @@ void CGameObject::starFn1(int v) {
starControl->fn1(v);
}
-void CGameObject::starFn2() {
+bool CGameObject::starFn2() {
CStarControl *starControl = getStarControl();
- if (starControl)
- starControl->fn4();
+ return starControl ? starControl->fn4() : false;
}
/*------------------------------------------------------------------------*/