[Scummvm-cvs-logs] CVS: scummvm/sword2 sword2.cpp,1.120,1.121

Pawel Kolodziejski aquadran at users.sourceforge.net
Fri Nov 19 11:51:08 CET 2004


Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16339/sword2

Modified Files:
	sword2.cpp 
Log Message:
added walkthrough

Index: sword2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/sword2.cpp,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- sword2.cpp	16 Nov 2004 09:15:25 -0000	1.120
+++ sword2.cpp	19 Nov 2004 19:50:22 -0000	1.121
@@ -180,6 +180,8 @@
 	_gameCycle = 0;
 
 	_quit = false;
+
+	_walkthroughDialog->setGameName(detector->_game.name);
 }
 
 Sword2Engine::~Sword2Engine() {
@@ -193,6 +195,8 @@
 	delete _logic;
 	delete _resman;
 	delete _memory;
+
+	_walkthroughDialog->destroy();
 }
 
 void Sword2Engine::errorString(const char *buf1, char *buf2) {
@@ -296,6 +300,8 @@
 		startGame();
 
 	_graphics->initialiseRenderCycle();
+
+	_walkthroughDialog->create();
 }
 
 void Sword2Engine::mainRun() {
@@ -315,6 +321,8 @@
 		if (ke) {
 			if ((ke->modifiers == OSystem::KBD_CTRL && ke->keycode == 'd') || ke->ascii == '#' || ke->ascii == '~') {
 				_debugger->attach();
+			} else if ((ke->modifiers == OSystem::KBD_SHIFT) && (ke->keycode == 'w')) {
+				_walkthroughDialog->runModal();
 			} else if (ke->modifiers == 0 || ke->modifiers == OSystem::KBD_SHIFT) {
 				switch (ke->keycode) {
 				case 'p':
@@ -511,7 +519,7 @@
 	// script #1, but with different ScreenManager objects depending on
 	// if it's the demo or the full game, or if we're using a boot param.
 
-	int screen_manager_id;
+	int screen_manager_id = 0;
 
 	debug(5, "startGame() STARTING:");
 





More information about the Scummvm-git-logs mailing list