From 876e225c33c0fed6f064b98e89cd8acc6881b080 Mon Sep 17 00:00:00 2001 From: uruk Date: Fri, 20 Dec 2013 09:00:06 +0100 Subject: [PATCH] AVALANCHE: Repairs in Nim regarding the cursor and some text color. --- engines/avalanche/nim.cpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp index a7abfa391f2..c0ada304f84 100644 --- a/engines/avalanche/nim.cpp +++ b/engines/avalanche/nim.cpp @@ -86,14 +86,18 @@ void Nim::playNim() { CursorMan.showMouse(false); setup(); board(); - CursorMan.showMouse(true); + //CursorMan.showMouse(true); do { + startMove(); if (_dogfoodsTurn) dogFood(); - else + else { + CursorMan.showMouse(true); takeSome(); + CursorMan.showMouse(false); + } _stones[_row] -= _number; showChanges(); } while (_stonesLeft != 0); @@ -101,13 +105,10 @@ void Nim::playNim() { endOfGame(); // Winning sequence is A1, B3, B1, C1, C1, btw. _vm->fadeOut(); - CursorMan.showMouse(false); - _vm->_graphics->restoreScreen(); _vm->_graphics->removeBackup(); - - CursorMan.showMouse(true); _vm->fadeIn(); + CursorMan.showMouse(true); if (_dogfoodsTurn) { // Dogfood won - as usual. @@ -284,10 +285,8 @@ void Nim::takeSome() { } void Nim::endOfGame() { - CursorMan.showMouse(false); - chalk(595, 55 + _turns * 10, "Wins!"); - _vm->_graphics->drawNormalText("- - - Press any key... - - -", _vm->_font, 8, 100, 190, kColorYellow); + _vm->_graphics->drawNormalText("- - - Press any key... - - -", _vm->_font, 8, 100, 190, kColorWhite); Common::Event event; bool escape = false; @@ -300,8 +299,6 @@ void Nim::endOfGame() { } } } - - CursorMan.showMouse(true); } bool Nim::find(byte x) {