aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular
diff options
context:
space:
mode:
authorPaul Gilbert2014-02-25 19:52:35 -0500
committerPaul Gilbert2014-02-25 19:52:35 -0500
commit9eaab29afedf9eceee50f882b64cb39a14e616a2 (patch)
treecc067a4ab22fa48ccdf13fddebf125f35b994f31 /engines/mads/nebular
parentc9057bd6a8ee2b039e2ba528b1e2e59814b8ef88 (diff)
downloadscummvm-rg350-9eaab29afedf9eceee50f882b64cb39a14e616a2.tar.gz
scummvm-rg350-9eaab29afedf9eceee50f882b64cb39a14e616a2.tar.bz2
scummvm-rg350-9eaab29afedf9eceee50f882b64cb39a14e616a2.zip
MADS: Starting to refactor some Scene array fields as separate classes
Diffstat (limited to 'engines/mads/nebular')
-rw-r--r--engines/mads/nebular/game_nebular.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/mads/nebular/game_nebular.cpp b/engines/mads/nebular/game_nebular.cpp
index 34fe0c7d19..e777ff8def 100644
--- a/engines/mads/nebular/game_nebular.cpp
+++ b/engines/mads/nebular/game_nebular.cpp
@@ -68,7 +68,7 @@ void GameNebular::initialiseGlobals() {
_globalFlags[21] = 0xFFFF;
_globalFlags[95] = 0xFFFF;
- setObjectData(3, 17, nullptr);
+ _objects.setData(3, 17, nullptr);
// Put the values 0 through 3 in a random order in global slots 83 to 86
for (int i = 0; i < 4;) {
@@ -125,21 +125,21 @@ void GameNebular::initialiseGlobals() {
switch (_difficultyLevel) {
case DIFFICULTY_HARD:
_globalFlags[35] = 0;
- setObjectRoom(9, 1);
- setObjectRoom(50, 1);
+ _objects.setRoom(9, 1);
+ _objects.setRoom(50, 1);
_globalFlags[137] = 5;
_globalFlags[136] = 0;
break;
case DIFFICULTY_MEDIUM:
_globalFlags[35] = 0;
- setObjectRoom(8, 1);
+ _objects.setRoom(8, 1);
_globalFlags[137] = 0xFFFF;
_globalFlags[136] = 6;
break;
case DIFFICULTY_EASY:
_globalFlags[35] = 2;
- setObjectRoom(8, 1);
- setObjectRoom(27, 1);
+ _objects.setRoom(8, 1);
+ _objects.setRoom(27, 1);
break;
default:
break;