diff options
Diffstat (limited to 'engines/fullpipe/scenes/scene25.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene25.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/fullpipe/scenes/scene25.cpp b/engines/fullpipe/scenes/scene25.cpp index 8323e3d705..248049f757 100644 --- a/engines/fullpipe/scenes/scene25.cpp +++ b/engines/fullpipe/scenes/scene25.cpp @@ -229,29 +229,29 @@ void sceneHandler25_toLadder() { } void sceneHandler25_animateBearders() { - if (g_fp->_rnd->getRandomNumber(32767) < 218) { + if (g_fp->_rnd.getRandomNumber(32767) < 218) { MessageQueue *mq; mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC25_BEARDED), 0, 1); mq->setParamInt(-1, g_vars->scene25_bearders[0]->_odelay); - mq->getExCommandByIndex(0)->_x = g_fp->_rnd->getRandomNumber(650) + 100; + mq->getExCommandByIndex(0)->_x = g_fp->_rnd.getRandomNumber(650) + 100; mq->chain(0); g_vars->scene25_beardersCounter = 0; - if (g_fp->_rnd->getRandomNumber(32767) < 0x1FFF) { + if (g_fp->_rnd.getRandomNumber(32767) < 0x1FFF) { mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC25_BEARDED2), 0, 1); mq->setParamInt(-1, g_vars->scene25_bearders[1]->_odelay); - mq->getExCommandByIndex(0)->_x = g_fp->_rnd->getRandomNumber(650) + 100; + mq->getExCommandByIndex(0)->_x = g_fp->_rnd.getRandomNumber(650) + 100; mq->chain(0); - if (g_fp->_rnd->getRandomNumber(32767) < 8191) { + if (g_fp->_rnd.getRandomNumber(32767) < 8191) { mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC25_BEARDED3), 0, 1); mq->setParamInt(-1, g_vars->scene25_bearders[2]->_odelay); - mq->getExCommandByIndex(0)->_x = g_fp->_rnd->getRandomNumber(650) + 100; + mq->getExCommandByIndex(0)->_x = g_fp->_rnd.getRandomNumber(650) + 100; mq->chain(0); } } @@ -259,7 +259,7 @@ void sceneHandler25_animateBearders() { } void sceneHandler25_sneeze() { - if (g_fp->_rnd->getRandomNumber(32767) % 10) { + if (g_fp->_rnd.getRandomNumber(32767) % 10) { if (g_fp->_aniMan->_statics->_staticsId == ST_MAN25_ONBOARD) { g_fp->_aniMan->startAnim(MV_MAN25_ONBOARD, 0, -1); } else if (g_fp->_aniMan->_statics->_staticsId == (ST_MAN25_ONBOARD|0x4000)) { @@ -570,7 +570,7 @@ int sceneHandler25(ExCommand *cmd) { break; case MSG_BRD_TURN: - switch (g_fp->_rnd->getRandomNumber(3)) { + switch (g_fp->_rnd.getRandomNumber(3)) { case 0: g_fp->playSound(SND_25_025, 0); break; |