aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2013-12-20 09:00:06 +0100
committeruruk2013-12-20 09:00:06 +0100
commit876e225c33c0fed6f064b98e89cd8acc6881b080 (patch)
tree83c14bd9fcc2f458852fe9b0822eee315a8a9020 /engines/avalanche
parentf83de4fbfe655591186eb0c4e2df87b1695e9fe9 (diff)
downloadscummvm-rg350-876e225c33c0fed6f064b98e89cd8acc6881b080.tar.gz
scummvm-rg350-876e225c33c0fed6f064b98e89cd8acc6881b080.tar.bz2
scummvm-rg350-876e225c33c0fed6f064b98e89cd8acc6881b080.zip
AVALANCHE: Repairs in Nim regarding the cursor and some text color.
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/nim.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index a7abfa391f..c0ada304f8 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) {