aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2011-07-25 19:09:12 +0200
committerStrangerke2011-07-25 19:09:12 +0200
commitdad302b640524224cb9381b3cfdcac7f430f0b21 (patch)
treeb9f39c75f60c660783eb23b91745009ebae1cf18
parent2e5a041046f69378da87fb8cab805fdee31a01e2 (diff)
downloadscummvm-rg350-dad302b640524224cb9381b3cfdcac7f430f0b21.tar.gz
scummvm-rg350-dad302b640524224cb9381b3cfdcac7f430f0b21.tar.bz2
scummvm-rg350-dad302b640524224cb9381b3cfdcac7f430f0b21.zip
CGE: Remove _core from Startup class
-rw-r--r--engines/cge/cge.cpp4
-rw-r--r--engines/cge/cge_main.cpp13
-rw-r--r--engines/cge/startup.cpp1
-rw-r--r--engines/cge/startup.h12
4 files changed, 6 insertions, 24 deletions
diff --git a/engines/cge/cge.cpp b/engines/cge/cge.cpp
index 6068dee46e..6542518a7e 100644
--- a/engines/cge/cge.cpp
+++ b/engines/cge/cge.cpp
@@ -102,20 +102,22 @@ void CGEEngine::setup() {
_eventManager = new EventManager();
_offUseCount = atoi(_text->getText(kOffUseCount));
_music = true;
- _mini = new byte[MINI_EMM_SIZE];
for (int i = 0; i < kPocketNX; i++)
_pocref[i] = -1;
_volume[0] = 0;
_volume[1] = 0;
+
if (_isDemo) {
+ _mini = new byte[16384];
_maxCaveArr[0] = CAVE_MAX;
_maxCaveArr[1] = -1;
_maxCaveArr[2] = -1;
_maxCaveArr[3] = -1;
_maxCaveArr[4] = -1;
} else {
+ _mini = new byte[65536];
_maxCaveArr[0] = 1;
_maxCaveArr[1] = 8;
_maxCaveArr[2] = 16;
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp
index 60500b2b0e..3bffa1f732 100644
--- a/engines/cge/cge_main.cpp
+++ b/engines/cge/cge_main.cpp
@@ -335,9 +335,6 @@ void CGEEngine::syncGame(Common::SeekableReadStream *readStream, Common::WriteSt
}
} else {
// Loading game
- if (Startup::_core < CORE_HIG)
- _music = false;
-
if (Startup::_soundOk == 1 && Startup::_mode == 0) {
// _sndDrvInfo.Vol2._d = _volume[0];
// _sndDrvInfo.Vol2._m = _volume[1];
@@ -888,7 +885,7 @@ void System::tick() {
if (_snail->idle()) {
if (PAIN)
_vm->heroCover(9);
- else if (Startup::_core >= CORE_MID) {
+ else { // CHECKME: Before, was: if (Startup::_core >= CORE_MID) {
int n = new_random(100);
if (n > 96)
_vm->heroCover(6 + (_hero->_x + _hero->_w / 2 < kScrWidth / 2));
@@ -928,12 +925,8 @@ void CGEEngine::switchMusic() {
_snail->addCom2(kSnExec, -1, 0, kSelectSound);
}
} else {
- if (Startup::_core < CORE_HIG)
- _snail->addCom(kSnInf, -1, kNoMusic, NULL);
- else {
- _snail_->addCom(kSnSeq, 122, (_music = !_music), NULL);
- keyClick();
- }
+ _snail_->addCom(kSnSeq, 122, (_music = !_music), NULL);
+ keyClick();
}
if (_music)
loadMidi(_now);
diff --git a/engines/cge/startup.cpp b/engines/cge/startup.cpp
index aca58a91ba..19ec2879c6 100644
--- a/engines/cge/startup.cpp
+++ b/engines/cge/startup.cpp
@@ -40,7 +40,6 @@ extern char _copr[];
// static Startup _startUp;
int Startup::_mode = 0;
-int Startup::_core;
int Startup::_soundOk = 0;
uint16 Startup::_summa;
diff --git a/engines/cge/startup.h b/engines/cge/startup.h
index 4b1f8662f3..d9416ff6a4 100644
--- a/engines/cge/startup.h
+++ b/engines/cge/startup.h
@@ -47,22 +47,10 @@ namespace CGE {
#define CFG_EXT ".CFG"
-#if defined(DEMO)
-#define MINI_EMM_SIZE 0x00004000L
-#define CORE_HIG 400
-#else
-#define MINI_EMM_SIZE 0x00010000L
-#define CORE_HIG 450
-#endif
-
-#define CORE_MID (CORE_HIG - 20)
-
-
class Startup {
static bool getParms();
public:
static int _mode;
- static int _core;
static int _soundOk;
static uint16 _summa;
Startup();