[Scummvm-cvs-logs] CVS: scummvm/sword2 controls.cpp,1.94,1.95

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Sun Oct 16 06:55:16 CEST 2005


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

Modified Files:
	controls.cpp 
Log Message:
Don't remove the cursor character from the savegame name until the very
last moment. Should fix bug #1327439.


Index: controls.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/controls.cpp,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- controls.cpp	15 Oct 2005 15:46:12 -0000	1.94
+++ controls.cpp	16 Oct 2005 13:53:15 -0000	1.95
@@ -1378,8 +1378,6 @@
 		if (_mode == kSaveDialog) {
 			if (_editPos <= _firstPos)
 				return;
-
-			_editBuffer[_editPos] = 0;
 		}
 	}
 
@@ -1387,12 +1385,14 @@
 }
 
 int SaveRestoreDialog::runModal() {
-
 	int result = Dialog::runModal();
 
 	if (result) {
 		switch (_mode) {
 		case kSaveDialog:
+			// Remove the cursor character from the savegame name
+			_editBuffer[_editPos] = 0;
+
 			if (_vm->saveGame(_selectedSlot, (byte *)&_editBuffer[_firstPos]) != SR_OK)
 				result = 0;
 			break;





More information about the Scummvm-git-logs mailing list