diff options
author | Gregory Montoir | 2003-10-29 13:06:10 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-10-29 13:06:10 +0000 |
commit | 24acd21da4c3470160498059458bf174be4a66f9 (patch) | |
tree | cb7447f05d1ab119897996473e4dbf9949d21ddb /queen/display.cpp | |
parent | 2a113835234c316b91846d308eef9cc0fe2d3f72 (diff) | |
download | scummvm-rg350-24acd21da4c3470160498059458bf174be4a66f9.tar.gz scummvm-rg350-24acd21da4c3470160498059458bf174be4a66f9.tar.bz2 scummvm-rg350-24acd21da4c3470160498059458bf174be4a66f9.zip |
only one RandomSource for the engine
svn-id: r11004
Diffstat (limited to 'queen/display.cpp')
-rw-r--r-- | queen/display.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/queen/display.cpp b/queen/display.cpp index 0f4012851e..fa29ec0cb7 100644 --- a/queen/display.cpp +++ b/queen/display.cpp @@ -22,6 +22,7 @@ #include "stdafx.h" #include "queen/display.h" #include "queen/defs.h" +#include "queen/logic.h" // For RandomSource #include "queen/resource.h" @@ -414,7 +415,7 @@ void Display::palCustomScroll(uint16 roomNum) { j += jdir; if(j <= 0 || j >= 14) { jdir = -jdir; - if (_randomizer.getRandomNumber(1)) { + if (Logic::randomizer.getRandomNumber(1)) { if (ABS(jdir) == 1) { jdir *= 2; } |