diff options
| author | uruk | 2014-04-06 19:42:46 +0200 | 
|---|---|---|
| committer | uruk | 2014-04-06 19:42:46 +0200 | 
| commit | 647679b925e2548f0d15d4e27a3aa2c908151c5a (patch) | |
| tree | 86941c4fbe96f368f7043af05a8a276858fcce38 /engines/avalanche/timer.cpp | |
| parent | aa55e41b75ac773aa53c2c976b8a036fd4357927 (diff) | |
| download | scummvm-rg350-647679b925e2548f0d15d4e27a3aa2c908151c5a.tar.gz scummvm-rg350-647679b925e2548f0d15d4e27a3aa2c908151c5a.tar.bz2 scummvm-rg350-647679b925e2548f0d15d4e27a3aa2c908151c5a.zip | |
AVALANCHE: Remove some leftovers of the mini-games.
Diffstat (limited to 'engines/avalanche/timer.cpp')
| -rw-r--r-- | engines/avalanche/timer.cpp | 27 | 
1 files changed, 9 insertions, 18 deletions
| diff --git a/engines/avalanche/timer.cpp b/engines/avalanche/timer.cpp index 7b6e1ee1ce..8a7ef9a316 100644 --- a/engines/avalanche/timer.cpp +++ b/engines/avalanche/timer.cpp @@ -333,12 +333,11 @@ void Timer::hangAround2() {  	// We don't need the ShootEmUp during the whole game, it's only playable once.  	ShootEmUp *shootemup = new ShootEmUp(_vm); -	shootemup->run(); +	_shootEmUpScore = shootemup->run();  	delete shootemup;  }  void Timer::afterTheShootemup() { -	// Only placed this here to replace the minigame. TODO: Remove it when the shoot em' up is implemented!  	_vm->flipRoom(_vm->_room, 1);  	_vm->_animation->_sprites[0]->init(0, true); // Avalot. @@ -347,27 +346,17 @@ void Timer::afterTheShootemup() {  	_vm->_objects[kObjectCrossbow - 1] = true;  	_vm->refreshObjectList(); -	// Same as the added line above: TODO: Remove it later!!! -	_vm->_dialogs->displayText(Common::String("P.S.: There should have been the mini-game called \"shoot em' up\", " \ -		"but I haven't implemented it yet: you get the crossbow automatically.") + kControlNewLine + kControlNewLine + "Peter (uruk)"); +	byte gain = (_shootEmUpScore + 5) / 10; // Rounding up. -#if 0 -	byte shootscore, gain; - -	shootscore = mem[storage_seg * storage_ofs]; -	gain = (shootscore + 5) / 10; // Rounding up. - -	display(string("\6Your score was ") + strf(shootscore) + '.' + "\r\rYou gain (" + -		strf(shootscore) + " 0xF6 10) = " + strf(gain) + " points."); +	_vm->_dialogs->displayText(kControlItalic + Common::String("Your score was ") + Common::String::format("%d", _shootEmUpScore) + '.' + kControlNewLine + kControlNewLine + "You gain (" + +		Common::String::format("%d", _shootEmUpScore) + " " + 0xF6 + " 10) = " + Common::String::format("%d", gain) + " points.");  	if (gain > 20) { -		display("But we won't let you have more than 20 points!"); -		points(20); +		_vm->_dialogs->displayText("But we won't let you have more than 20 points!"); +		_vm->incScore(20);  	} else -		points(gain); -#endif +		_vm->incScore(gain); -	warning("STUB: Timer::after_the_shootemup()");  	_vm->_dialogs->displayScrollChain('Q', 70);  } @@ -712,6 +701,8 @@ void Timer::resetVariables() {  		_times[i]._action = 0;  		_times[i]._reason = 0;  	} + +	_shootEmUpScore = 0;  }  } // End of namespace Avalanche. | 
