[Scummvm-cvs-logs] scummvm master -> 816b65ff2c2aefa6cd018da8c1505cdf9a30e5f6

Strangerke Strangerke at scummvm.org
Sat Dec 3 17:52:51 CET 2011


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:
816b65ff2c CGE: Soltys - Fix initialization of a couple of bool variables


Commit: 816b65ff2c2aefa6cd018da8c1505cdf9a30e5f6
    https://github.com/scummvm/scummvm/commit/816b65ff2c2aefa6cd018da8c1505cdf9a30e5f6
Author: Strangerke (strangerke at scummvm.org)
Date: 2011-12-03T08:52:05-08:00

Commit Message:
CGE: Soltys - Fix initialization of a couple of bool variables

Changed paths:
    engines/cge/cge_main.cpp
    engines/cge/snail.cpp



diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp
index 6bcdb0f..bd29471 100644
--- a/engines/cge/cge_main.cpp
+++ b/engines/cge/cge_main.cpp
@@ -721,7 +721,7 @@ void CGEEngine::switchScene(int newScene) {
 		if (_hero) {
 			_hero->park();
 			_hero->step(0);
-			_vga->_spareQ->_show = 0;
+			_vga->_spareQ->_show = false;
 		}
 		_sceneLight->gotoxy(kSceneX + ((_now - 1) % kSceneNx) * kSceneDx + kSceneSX,
 		                  kSceneY + ((_now - 1) / kSceneNx) * kSceneDy + kSceneSY);
diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp
index f75510a..f50f669 100644
--- a/engines/cge/snail.cpp
+++ b/engines/cge/snail.cpp
@@ -447,7 +447,7 @@ void CGEEngine::snGame(Sprite *spr, int num) {
 				_commandHandler->addCommand(kCmdSeq, -1, 0, dup[2]);               // Get Away (Her)
 				_commandHandler->addCommand(kCmdSetXY, -1, 182 + kScrWidth * 62, dup[2]);
 				_commandHandler->addCommand(kCmdSetZ, -1, 9, dup[2]);
-				_game = 0;
+				_game = false;
 				return;
 			} else {
 				_commandHandler->addCommand(kCmdSeq, -1, 2, dup[0]);               // reset animation sequence






More information about the Scummvm-git-logs mailing list