[Scummvm-cvs-logs] SF.net SVN: scummvm: [30855] scummvm/branches/branch-0-11-0/engines/agi/ detection.cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Tue Feb 12 16:31:47 CET 2008


Revision: 30855
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30855&view=rev
Author:   buddha_
Date:     2008-02-12 07:31:46 -0800 (Tue, 12 Feb 2008)

Log Message:
-----------
Backport of r30854: Tiny fix to autodetected game's naming (Removes an extra space).

Modified Paths:
--------------
    scummvm/branches/branch-0-11-0/engines/agi/detection.cpp

Modified: scummvm/branches/branch-0-11-0/engines/agi/detection.cpp
===================================================================
--- scummvm/branches/branch-0-11-0/engines/agi/detection.cpp	2008-02-12 15:31:09 UTC (rev 30854)
+++ scummvm/branches/branch-0-11-0/engines/agi/detection.cpp	2008-02-12 15:31:46 UTC (rev 30855)
@@ -2224,7 +2224,7 @@
 	// Check if we found a match with any of the fallback methods
 	Common::EncapsulatedADGameDesc result;
 	if (matchedUsingWag || matchedUsingFilenames) {
-		extra = description + " " + extra; // Let's combine the description and extra
+		extra = description + (!extra.empty() ? " " : "") + extra; // Let's combine the description and extra
 		result = Common::EncapsulatedADGameDesc((const Common::ADGameDescription *)&g_fallbackDesc, gameid, extra);
 
 		printf("Your game version has been detected using fallback matching as a\n");


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