diff options
author | uruk | 2013-07-24 18:12:16 +0200 |
---|---|---|
committer | uruk | 2013-07-24 18:12:16 +0200 |
commit | cc6197d77f9fc97243473f59cda144f95c0b25c3 (patch) | |
tree | 0b676e3bea98baaba94ab1fd269faefa253c03f7 /engines/avalanche/avalanche.cpp | |
parent | 8c5ce549e655a0f739cd161ed33efa6750a8fd95 (diff) | |
download | scummvm-rg350-cc6197d77f9fc97243473f59cda144f95c0b25c3.tar.gz scummvm-rg350-cc6197d77f9fc97243473f59cda144f95c0b25c3.tar.bz2 scummvm-rg350-cc6197d77f9fc97243473f59cda144f95c0b25c3.zip |
AVALANCHE: Change _avalot into pointer, update everything accordingly.
Diffstat (limited to 'engines/avalanche/avalanche.cpp')
-rw-r--r-- | engines/avalanche/avalanche.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp index 4b51c8babd..f5013cd338 100644 --- a/engines/avalanche/avalanche.cpp +++ b/engines/avalanche/avalanche.cpp @@ -57,11 +57,14 @@ AvalancheEngine::~AvalancheEngine() { delete _rnd; delete _graphics; + + delete _avalot; } Common::ErrorCode AvalancheEngine::initialize() { _graphics = new Graphics(this); + _avalot = new Avalot(this); _gyro.setParent(this); _enhanced.setParent(this); _logger.setParent(this); @@ -78,7 +81,6 @@ Common::ErrorCode AvalancheEngine::initialize() { _basher.setParent(this); _dropdown.setParent(this); _closing.setParent(this); - _avalot.setParent(this); _graphics->init(); @@ -124,7 +126,7 @@ void AvalancheEngine::updateEvents() { while (_eventMan->pollEvent(event)) { switch (event.type) { case Common::EVENT_KEYDOWN: - _avalot.handleKeyDown(event); + _avalot->handleKeyDown(event); } } } @@ -258,7 +260,7 @@ void AvalancheEngine::demo() { void AvalancheEngine::run_avalot() { bflight_on(); - _avalot.run(Common::String(runcodes[first_time]) + arguments); + _avalot->run(Common::String(runcodes[first_time]) + arguments); // TODO: Check if parameteres are ever used (probably not) and eventually remove them. // If there's an error initalizing avalot, i'll handle it in there, not here |