[Scummvm-cvs-logs] scummvm master -> f8bfe84c44edd9969cad6c9e011c43f92127a23d

bluegr md5 at scummvm.org
Sat Dec 17 19:08:06 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:
f8bfe84c44 DREAMWEB: Remove dead code


Commit: f8bfe84c44edd9969cad6c9e011c43f92127a23d
    https://github.com/scummvm/scummvm/commit/f8bfe84c44edd9969cad6c9e011c43f92127a23d
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-12-17T10:06:55-08:00

Commit Message:
DREAMWEB: Remove dead code

Changed paths:
    engines/dreamweb/saveload.cpp



diff --git a/engines/dreamweb/saveload.cpp b/engines/dreamweb/saveload.cpp
index 574036c..c77c419 100644
--- a/engines/dreamweb/saveload.cpp
+++ b/engines/dreamweb/saveload.cpp
@@ -191,7 +191,7 @@ void DreamGenContext::saveGame() {
 		}
 
 		char descbuf[17] = { 2, 0 };
-		Common::strlcpy((char*)descbuf+1, game_description.c_str(), 16);
+		Common::strlcpy((char*)descbuf + 1, game_description.c_str(), 16);
 		unsigned int desclen = game_description.size();
 		if (desclen > 15)
 			desclen = 15;
@@ -199,9 +199,6 @@ void DreamGenContext::saveGame() {
 		descbuf[++desclen] = 0;
 		while (desclen < 16)
 			descbuf[++desclen] = 1;
-		if (savegameId < 7)
-			Common::strlcpy(&_saveNames[17 * savegameId + 1], descbuf, 16);	// the first character is unused
-
 		savePosition(savegameId, descbuf);
 
 		// TODO: The below is copied from actualsave






More information about the Scummvm-git-logs mailing list