aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap/scenes/scene42.cpp
diff options
context:
space:
mode:
authorStrangerke2016-03-25 07:49:43 +0100
committerEugene Sandulenko2016-05-10 09:54:21 +0200
commitf3a164342b4f62c3bdf02c226880e6d2d6316a66 (patch)
treea8b7d5c49276c83ab6f67bc300ae1261f7b657ba /engines/gnap/scenes/scene42.cpp
parentecc3e2a786629d06fbcf17e4d74605215efdc1ef (diff)
downloadscummvm-rg350-f3a164342b4f62c3bdf02c226880e6d2d6316a66.tar.gz
scummvm-rg350-f3a164342b4f62c3bdf02c226880e6d2d6316a66.tar.bz2
scummvm-rg350-f3a164342b4f62c3bdf02c226880e6d2d6316a66.zip
GNAP: Remove a global variable used for randomization
Diffstat (limited to 'engines/gnap/scenes/scene42.cpp')
-rw-r--r--engines/gnap/scenes/scene42.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/gnap/scenes/scene42.cpp b/engines/gnap/scenes/scene42.cpp
index 8de3a694eb..3826f7b29b 100644
--- a/engines/gnap/scenes/scene42.cpp
+++ b/engines/gnap/scenes/scene42.cpp
@@ -330,8 +330,7 @@ void GnapEngine::scene42_run() {
if (!_timers[4]) {
_timers[4] = getRandom(20) + 30;
if (_gnapActionStatus < 0 && _beaverActionStatus < 0 && _s42_nextBBQVendorSequenceId == -1) {
- _gnapRandomValue = getRandom(8);
- switch (_gnapRandomValue) {
+ switch (getRandom(8)) {
case 0:
_s42_nextBBQVendorSequenceId = 0x14C;
break;