CGE: Remove JBW flag (useless)

This commit is contained in:
Strangerke 2011-08-07 11:36:49 +02:00
parent cbb828b337
commit de40ab5e0a
3 changed files with 0 additions and 20 deletions

View File

@ -51,7 +51,6 @@ CGEEngine::CGEEngine(OSystem *syst, const ADGameDescription *gameDescription)
_startupMode = 1;
_demoText = kDemo;
_oldLev = 0;
_jbw = false;
_pocPtr = 0;
}

View File

@ -111,7 +111,6 @@ public:
int _startupMode;
int _demoText;
int _oldLev;
bool _jbw;
int _pocPtr;
bool _music;
int _pocref[kPocketNX];

View File

@ -724,19 +724,15 @@ void System::funTouch() {
}
void System::touch(uint16 mask, int x, int y) {
static int pp = 0;
funTouch();
if (mask & kEventKeyb) {
int pp0;
_vm->keyClick();
killText();
if (_vm->_startupMode == 1) {
_snail->addCom(kSnClear, -1, 0, NULL);
return;
}
pp0 = pp;
switch (x) {
case Del:
if (_keyboard->_key[kKeyAlt] && _keyboard->_key[kKeyCtrl])
@ -817,21 +813,7 @@ void System::touch(uint16 mask, int x, int y) {
if (_snail->idle() && !_hero->_flags._hide)
_vm->startCountDown();
break;
case 'J':
if (pp == 0)
pp++;
break;
case 'B':
if (pp == 1)
pp++;
break;
case 'W':
if (pp == 2)
_vm->_jbw = !_vm->_jbw;
break;
}
if (pp == pp0)
pp = 0;
} else {
if (_vm->_startupMode)
return;