mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
AVALANCHE: Rework use of ShootEmUp.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -91,7 +91,6 @@ public:
|
||||
Nim *_nim;
|
||||
GhostRoom *_ghostroom;
|
||||
Help *_help;
|
||||
ShootEmUp *_shootemup;
|
||||
|
||||
OSystem *_system;
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user