diff options
author | Colin Snover | 2017-11-14 11:34:39 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | a25246bebe860aa7057e4c8901234c9d5f52b814 (patch) | |
tree | a2268a65fd5115734c3adc60e130032af6e43725 /engines/fullpipe/scenes/scene35.cpp | |
parent | a49b6648c83145acc6ca576865af08ce63665b1f (diff) | |
download | scummvm-rg350-a25246bebe860aa7057e4c8901234c9d5f52b814.tar.gz scummvm-rg350-a25246bebe860aa7057e4c8901234c9d5f52b814.tar.bz2 scummvm-rg350-a25246bebe860aa7057e4c8901234c9d5f52b814.zip |
FULLPIPE: Remove unnecessary extra allocation for RNG
Diffstat (limited to 'engines/fullpipe/scenes/scene35.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene35.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/fullpipe/scenes/scene35.cpp b/engines/fullpipe/scenes/scene35.cpp index e8b08b2614..ed2ab46caa 100644 --- a/engines/fullpipe/scenes/scene35.cpp +++ b/engines/fullpipe/scenes/scene35.cpp @@ -123,10 +123,10 @@ void sceneHandler35_genFlies() { StaticANIObject *fly = g_fp->_currentScene->getStaticANIObject1ById(ANI_FLY, -1); int xoff = 0; - if ((!fly || !(fly->_flags & 4)) && !(g_fp->_rnd->getRandomNumber(32767) % 30)) { + if ((!fly || !(fly->_flags & 4)) && !(g_fp->_rnd.getRandomNumber(32767) % 30)) { int x, y; - if (g_fp->_rnd->getRandomNumber(1)) { + if (g_fp->_rnd.getRandomNumber(1)) { x = 600; y = 0; } else { @@ -134,10 +134,10 @@ void sceneHandler35_genFlies() { y = 600; } - int numFlies = g_fp->_rnd->getRandomNumber(3) + 1; + int numFlies = g_fp->_rnd.getRandomNumber(3) + 1; while (numFlies--) { - g_fp->_floaters->genFlies(g_fp->_currentScene, g_fp->_rnd->getRandomNumber(55) + 1057, g_fp->_rnd->getRandomNumber(60) + x + xoff, 4, 1); + g_fp->_floaters->genFlies(g_fp->_currentScene, g_fp->_rnd.getRandomNumber(55) + 1057, g_fp->_rnd.getRandomNumber(60) + x + xoff, 4, 1); xoff += 40; |