diff options
author | Paul Gilbert | 2016-08-22 20:22:41 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-22 20:22:41 -0400 |
commit | 8b3829549a2c82a09f7475c35173238f7470d587 (patch) | |
tree | c0965bfcae7153af1f831be1204726644d99da9e /engines/titanic/npcs/doorbot.cpp | |
parent | 65bc8cb83c01cc1e7e6c8c093b8f42080800718d (diff) | |
download | scummvm-rg350-8b3829549a2c82a09f7475c35173238f7470d587.tar.gz scummvm-rg350-8b3829549a2c82a09f7475c35173238f7470d587.tar.bz2 scummvm-rg350-8b3829549a2c82a09f7475c35173238f7470d587.zip |
TITANIC: Cleanup of engine references
Diffstat (limited to 'engines/titanic/npcs/doorbot.cpp')
-rw-r--r-- | engines/titanic/npcs/doorbot.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/titanic/npcs/doorbot.cpp b/engines/titanic/npcs/doorbot.cpp index 8b98e0d0ef..4a5f3690c0 100644 --- a/engines/titanic/npcs/doorbot.cpp +++ b/engines/titanic/npcs/doorbot.cpp @@ -21,7 +21,7 @@ */ #include "titanic/npcs/doorbot.h" -#include "titanic/titanic.h" +#include "titanic/core/room_item.h" namespace Titanic { @@ -180,7 +180,7 @@ bool CDoorbot::OnSummonBotMsg(COnSummonBotMsg *msg) { sleep(2000); } - playClip(g_vm->getRandomNumber(1) ? "Whizz On Left" : "Whizz On Right", + playClip(getRandomNumber(1) ? "Whizz On Left" : "Whizz On Right", MOVIE_NOTIFY_OBJECT | MOVIE_GAMESTATE); movieEvent(); _npcFlags |= NPCFLAG_400000; @@ -371,7 +371,7 @@ bool CDoorbot::PutBotBackInHisBoxMsg(CPutBotBackInHisBoxMsg *msg) { bool CDoorbot::DismissBotMsg(CDismissBotMsg *msg) { if (_npcFlags & NPCFLAG_400000) { - playClip(g_vm->getRandomNumber(1) ? "Whizz Off Left" : "Whizz Off Right", + playClip(getRandomNumber(1) ? "Whizz Off Left" : "Whizz Off Right", MOVIE_STOP_PREVIOUS | MOVIE_NOTIFY_OBJECT | MOVIE_GAMESTATE); movieEvent(); @@ -440,7 +440,7 @@ bool CDoorbot::TrueTalkNotifySpeechEndedMsg(CTrueTalkNotifySpeechEndedMsg *msg) case 10562: if (_field108 == 1) { stopAnimTimer(_timerId); - _timerId = addTimer(2, g_vm->getRandomNumber(5000), 0); + _timerId = addTimer(2, getRandomNumber(5000), 0); } break; |