Compatibility fix for Mac OS X 10.4 targets.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4615 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2011-10-08 11:25:27 +00:00
parent 22ab6c69a6
commit 30cdb0033b

View File

@ -285,7 +285,11 @@ NSString *ExpandDescriptionForSeed(NSString *text, Random_Seed seed, NSString *n
// Stop randomly generated system description strings from containing double spaces!
if (EXPECT_NOT([text isEqualToString:@"[system-description-string]"]))
{
#if OOLITE_HAVE_STRING_BY_REPLACING
result = [result stringByReplacingOccurrencesOfString:@" " withString:@" "];
#else
result = [[result componentsSeparatedByString:@" "] componentsJoinedByString:@" "];
#endif
}
return result;