AVALANCHE: Rework use of ShootEmUp.

This commit is contained in:
uruk
2014-03-07 09:04:27 +01:00
parent ea5bd95492
commit da157fbccc
3 changed files with 4 additions and 5 deletions
-3
View File
@@ -57,7 +57,6 @@ AvalancheEngine::AvalancheEngine(OSystem *syst, const AvalancheGameDescription *
_nim = nullptr;
_ghostroom = nullptr;
_help = nullptr;
_shootemup = nullptr;
_platform = gd->desc.platform;
initVariables();
@@ -82,7 +81,6 @@ AvalancheEngine::~AvalancheEngine() {
delete _nim;
delete _ghostroom;
delete _help;
delete _shootemup;
for (int i = 0; i < 31; i++) {
for (int j = 0; j < 2; j++) {
@@ -167,7 +165,6 @@ Common::ErrorCode AvalancheEngine::initialize() {
_nim = new Nim(this);
_ghostroom = new GhostRoom(this);
_help = new Help(this);
_shootemup = new ShootEmUp(this);
_graphics->init();
_dialogs->init();
-1
View File
@@ -91,7 +91,6 @@ public:
Nim *_nim;
GhostRoom *_ghostroom;
Help *_help;
ShootEmUp *_shootemup;
OSystem *_system;
+4 -1
View File
@@ -331,7 +331,10 @@ void Timer::hangAround2() {
_vm->_tiedUp = false;
_vm->_shootemup->run();
// We don't need the ShootEmUp during the whole game, it's only playable once.
ShootEmUp *shootemup = new ShootEmUp(_vm);
shootemup->run();
delete shootemup;
}
void Timer::afterTheShootemup() {