aboutsummaryrefslogtreecommitdiff
path: root/queen/display.cpp
diff options
context:
space:
mode:
authorGregory Montoir2003-10-29 13:06:10 +0000
committerGregory Montoir2003-10-29 13:06:10 +0000
commit24acd21da4c3470160498059458bf174be4a66f9 (patch)
treecb7447f05d1ab119897996473e4dbf9949d21ddb /queen/display.cpp
parent2a113835234c316b91846d308eef9cc0fe2d3f72 (diff)
downloadscummvm-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.cpp3
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;
}