[Scummvm-cvs-logs] scummvm master -> 876e225c33c0fed6f064b98e89cd8acc6881b080

urukgit urukgit at users.noreply.github.com
Fri Dec 20 09:00:41 CET 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
876e225c33 AVALANCHE: Repairs in Nim regarding the cursor and some text color.


Commit: 876e225c33c0fed6f064b98e89cd8acc6881b080
    https://github.com/scummvm/scummvm/commit/876e225c33c0fed6f064b98e89cd8acc6881b080
Author: uruk (koppirnyo at gmail.com)
Date: 2013-12-20T00:00:06-08:00

Commit Message:
AVALANCHE: Repairs in Nim regarding the cursor and some text color.

Changed paths:
    engines/avalanche/nim.cpp



diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index a7abfa3..c0ada30 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) {






More information about the Scummvm-git-logs mailing list