[Scummvm-cvs-logs] SF.net SVN: scummvm:[54530] scummvm/trunk/engines/hugo

strangerke at users.sourceforge.net strangerke at users.sourceforge.net
Sun Nov 28 17:38:02 CET 2010


Revision: 54530
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54530&view=rev
Author:   strangerke
Date:     2010-11-28 16:38:01 +0000 (Sun, 28 Nov 2010)

Log Message:
-----------
HUGO: Modify or suppress some obsolete comments and warnings

Modified Paths:
--------------
    scummvm/trunk/engines/hugo/game.h
    scummvm/trunk/engines/hugo/parser.cpp
    scummvm/trunk/engines/hugo/parser_v1w.cpp
    scummvm/trunk/engines/hugo/schedule_v2d.cpp
    scummvm/trunk/engines/hugo/util.cpp

Modified: scummvm/trunk/engines/hugo/game.h
===================================================================
--- scummvm/trunk/engines/hugo/game.h	2010-11-28 16:00:47 UTC (rev 54529)
+++ scummvm/trunk/engines/hugo/game.h	2010-11-28 16:38:01 UTC (rev 54530)
@@ -42,15 +42,11 @@
 
 namespace Hugo {
 
-// WARNING!!  Run the program at least once before release to
-// generate the initial save file!  (Using the -i cmd switch)
-// Set EPISODE_NUM & build.  Build pictures.mak and run "Tools/Hugo N".
-// Copy helpedit\hugow_?.hlp to .\hugowin?.hlp
+// WARNING!!  
 // Type "PPG" in the game to enter cheat mode.
 
 #define COPYRIGHT   "Copyright 1989-1997 David P Gray, All Rights Reserved."
 // Started code on 04/01/95
-// Don't forget to update Hugowin.rc2 with version info
 //#define VER "1.0" // 10/01/95 Initial Release
 //#define VER "1.1" // 10/06/95 Restore system volume levels on exit
 //#define VER "v1.2"// 10/12/95 Added "background music" checkbox in volume dlg
@@ -97,7 +93,7 @@
 #define NAME_LEN       12                           // Max length of a DOS file name
 
 // Definitions of 'generic' commands: Max # depends on size of gencmd in
-//   the object_t record since each requires 1 bit.  Currently up to 16
+// the object_t record since each requires 1 bit.  Currently up to 16
 #define LOOK           1
 #define TAKE           2
 #define DROP           4

Modified: scummvm/trunk/engines/hugo/parser.cpp
===================================================================
--- scummvm/trunk/engines/hugo/parser.cpp	2010-11-28 16:00:47 UTC (rev 54529)
+++ scummvm/trunk/engines/hugo/parser.cpp	2010-11-28 16:38:01 UTC (rev 54530)
@@ -111,7 +111,7 @@
 		gameStatus.viewState = V_PLAY;
 		break;
 	case Common::KEYCODE_F9:                        // Boss button
-		warning("STUB: KeyHandler() - F4-F5-F9 (DOS)");
+		warning("STUB: F9 (DOS) - BossKey");
 		break;
 	default:                                        // Any other key
 		if (!gameStatus.storyModeFl) {              // Keyboard disabled
@@ -167,7 +167,7 @@
 		default:                                    // Normal text key, add to line
 			if (lineIndex >= MAX_CHARS) {
 				//MessageBeep(MB_ICONASTERISK);
-				warning("STUB: MessageBeep(MB_ICONASTERISK);");
+				warning("STUB: MessageBeep() - Command line too long");
 			} else if (isprint(c)) {
 				cmdLine[lineIndex++] = c;
 				cmdLine[lineIndex] = '\0';

Modified: scummvm/trunk/engines/hugo/parser_v1w.cpp
===================================================================
--- scummvm/trunk/engines/hugo/parser_v1w.cpp	2010-11-28 16:00:47 UTC (rev 54529)
+++ scummvm/trunk/engines/hugo/parser_v1w.cpp	2010-11-28 16:38:01 UTC (rev 54530)
@@ -120,7 +120,6 @@
 		// Test state-dependent look before general look
 		if ((obj->genericCmd & LOOK_S) == LOOK_S) {
 			Utils::Box(BOX_ANY, "%s", _vm->_textData[obj->stateDataIndex[obj->state]]);
-			warning("isGenericVerb: use of state dependant look - To be validated");
 		} else {
 			if ((LOOK & obj->genericCmd) == LOOK) {
 				if (_vm->_textData[obj->dataIndex])

Modified: scummvm/trunk/engines/hugo/schedule_v2d.cpp
===================================================================
--- scummvm/trunk/engines/hugo/schedule_v2d.cpp	2010-11-28 16:00:47 UTC (rev 54529)
+++ scummvm/trunk/engines/hugo/schedule_v2d.cpp	2010-11-28 16:38:01 UTC (rev 54530)
@@ -343,7 +343,6 @@
 		Utils::Box(BOX_ANY, TAKE_TEXT, _vm->_arrayNouns[_vm->_object->_objects[action->a42.objNumb].nounIndex][TAKE_NAME]);
 		break;
 	case YESNO:                                     // act43: Prompt user for Yes or No
-		warning("doAction(act43) - Yes/No Box");
 		if (Utils::Box(BOX_YESNO, "%s", _vm->_file->fetchString(action->a43.promptIndex)) != 0)
 			insertActionList(action->a43.actYesIndex);
 		else

Modified: scummvm/trunk/engines/hugo/util.cpp
===================================================================
--- scummvm/trunk/engines/hugo/util.cpp	2010-11-28 16:00:47 UTC (rev 54529)
+++ scummvm/trunk/engines/hugo/util.cpp	2010-11-28 16:38:01 UTC (rev 54530)
@@ -98,7 +98,7 @@
 		return 0;
 
 	if (strlen(s) > MAX_STRLEN - 100) {             // Test length
-		warning("String too big: '%s'", s);
+		warning("String too long: '%s'", s);
 		return 0;
 	}
 
@@ -139,8 +139,7 @@
  * Print options for user when dead
  */
 void Utils::gameOverMsg(void) {
-	//MessageBox(hwnd, gameoverstring, "Be more careful next time!", MB_OK | MB_ICONINFORMATION);
-	warning("STUB: Gameover_msg(): %s", HugoEngine::get()._textUtil[kGameOver]);
+	Utils::Box(BOX_OK, "%s", HugoEngine::get()._textUtil[kGameOver]);
 }
 
 char *Utils::strlwr(char *buffer) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list