diff options
| author | uruk | 2014-04-13 10:19:17 +0200 | 
|---|---|---|
| committer | uruk | 2014-04-13 10:19:17 +0200 | 
| commit | 56e9d41ae8959208022f99af02771a006926e269 (patch) | |
| tree | 4a34d2bf9e84f70d88a428f71cded138c041a8b7 /engines/avalanche/avalanche.cpp | |
| parent | f2d5f65d3344d82964387ef110637328cc7b3a9b (diff) | |
| download | scummvm-rg350-56e9d41ae8959208022f99af02771a006926e269.tar.gz scummvm-rg350-56e9d41ae8959208022f99af02771a006926e269.tar.bz2 scummvm-rg350-56e9d41ae8959208022f99af02771a006926e269.zip  | |
AVALANCHE: Add HighScore.
Diffstat (limited to 'engines/avalanche/avalanche.cpp')
| -rw-r--r-- | engines/avalanche/avalanche.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp index 15b43b3883..6cfe4dfdb6 100644 --- a/engines/avalanche/avalanche.cpp +++ b/engines/avalanche/avalanche.cpp @@ -57,6 +57,7 @@ AvalancheEngine::AvalancheEngine(OSystem *syst, const AvalancheGameDescription *  	_nim = nullptr;  	_ghostroom = nullptr;  	_help = nullptr; +	_highscore = nullptr;  	_platform = gd->desc.platform;  	initVariables(); @@ -81,6 +82,7 @@ AvalancheEngine::~AvalancheEngine() {  	delete _nim;  	delete _ghostroom;  	delete _help; +	delete _highscore;  	for (int i = 0; i < 31; i++) {  		for (int j = 0; j < 2; j++) { @@ -165,6 +167,7 @@ Common::ErrorCode AvalancheEngine::initialize() {  	_nim = new Nim(this);  	_ghostroom = new GhostRoom(this);  	_help = new Help(this); +	_highscore = new HighScore(this);  	_graphics->init();  	_dialogs->init(); @@ -200,7 +203,7 @@ void AvalancheEngine::synchronize(Common::Serializer &sz) {  	sz.syncAsByte(_carryNum);  	for (int i = 0; i < kObjectNum; i++)  		sz.syncAsByte(_objects[i]); -	sz.syncAsSint16LE(_dnascore); +	sz.syncAsSint16LE(_score);  	sz.syncAsSint32LE(_money);  	sz.syncAsByte(_room);  	if (sz.isSaving())  | 
