diff options
author | Strangerke | 2014-03-26 07:57:27 +0100 |
---|---|---|
committer | Strangerke | 2014-03-26 07:57:27 +0100 |
commit | 56f7b51754e30ec75c596cd80c76991ac158da66 (patch) | |
tree | b85c767d59c240db4f4b721bd647f00242f6c730 | |
parent | 46021c487b1d0d528a6f9199bff9f2006263bd33 (diff) | |
download | scummvm-rg350-56f7b51754e30ec75c596cd80c76991ac158da66.tar.gz scummvm-rg350-56f7b51754e30ec75c596cd80c76991ac158da66.tar.bz2 scummvm-rg350-56f7b51754e30ec75c596cd80c76991ac158da66.zip |
MADS: Add an enum for kRandomNumber
-rw-r--r-- | engines/mads/nebular/globals_nebular.h | 1 | ||||
-rw-r--r-- | engines/mads/nebular/nebular_scenes8.cpp | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/mads/nebular/globals_nebular.h b/engines/mads/nebular/globals_nebular.h index d8500e2291..b3cc94acb3 100644 --- a/engines/mads/nebular/globals_nebular.h +++ b/engines/mads/nebular/globals_nebular.h @@ -52,6 +52,7 @@ enum GlobalId { kFishIn105 = 19, kFishIn107 = 20, kFishIn108 = 21, + kRandomNumber = 29, /* Section #2 variables */ kCurtainOpen = 30, diff --git a/engines/mads/nebular/nebular_scenes8.cpp b/engines/mads/nebular/nebular_scenes8.cpp index b802c3e3e4..c60a43a5e1 100644 --- a/engines/mads/nebular/nebular_scenes8.cpp +++ b/engines/mads/nebular/nebular_scenes8.cpp @@ -239,9 +239,8 @@ void Scene804::step() { switch (_scene->_activeAnimation->getCurrentFrame()) { case 1: - // CHECKME: GlobalID not in enum - _globals[29] = _vm->getRandomNumber(1, 30); - switch (_globals[29]) { + _globals[kRandomNumber] = _vm->getRandomNumber(1, 30); + switch (_globals[kRandomNumber]) { case 1: _globals._v5 = 25; break; |