[Scummvm-cvs-logs] SF.net SVN: scummvm: [29151] scummvm/trunk/engines/saga/interface.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun Sep 30 16:46:49 CEST 2007


Revision: 29151
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29151&view=rev
Author:   thebluegr
Date:     2007-09-30 07:46:49 -0700 (Sun, 30 Sep 2007)

Log Message:
-----------
Show the cursor when opening the options screen. Also, fixed a regression with some strings in the game interface

Modified Paths:
--------------
    scummvm/trunk/engines/saga/interface.cpp

Modified: scummvm/trunk/engines/saga/interface.cpp
===================================================================
--- scummvm/trunk/engines/saga/interface.cpp	2007-09-30 14:32:21 UTC (rev 29150)
+++ scummvm/trunk/engines/saga/interface.cpp	2007-09-30 14:46:49 UTC (rev 29151)
@@ -400,9 +400,8 @@
 			_saveReminderState = 1;
 		}
 	} else if (mode == kPanelOption) {
-		// Show the cursor in the IHNM demo
-		if (_vm->getGameId() == GID_IHNM_DEMO)
-			_vm->_gfx->showCursor(true);
+		// Show the cursor if it's hidden
+		_vm->_gfx->showCursor(true);
 	} else {
 		if (mode == kPanelConverse) {
 			_inMainMode = false;
@@ -874,7 +873,7 @@
 		textFont = kKnownFontMedium;
 		textShadowKnownColor = kKnownColorVerbTextShadow;
 	} else {
-		if (panelButton->id < 39) {
+		if (panelButton->id < 39 || panelButton->id > 50) {
 			// Read non-hardcoded strings from the LUT string table, loaded from the game
 			// data files
 			text = _vm->_script->_mainStrings.getString(IHNMTextStringIdsLUT[panelButton->id]);
@@ -2223,7 +2222,7 @@
 		textWidth = _vm->_font->getStringWidth(kKnownFontMedium, text, 0, kFontNormal);
 		textHeight = _vm->_font->getHeight(kKnownFontMedium);
 	} else {
-		if (textId < 39) {
+		if (textId < 39 || textId > 50) {
 			// Read non-hardcoded strings from the LUT string table, loaded from the game
 			// data files
 			text = _vm->_script->_mainStrings.getString(IHNMTextStringIdsLUT[textId]);


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