forked from mirror/OpenTTD
(svn r2125) - Feature: In the intro dialog, show a map size selector below the landscape type selector.
This commit is contained in:
@@ -16,6 +16,7 @@ static char *GetSpecialTownNameString(char *buff, int ind);
|
||||
static char *GetSpecialPlayerNameString(char *buff, int ind);
|
||||
|
||||
static char *DecodeString(char *buff, const char *str);
|
||||
static char *FormatNoCommaNumber(char *buff, int32 number);
|
||||
|
||||
extern const char _openttd_revision[];
|
||||
|
||||
@@ -152,6 +153,12 @@ char *GetString(char *buffr, StringID string)
|
||||
return DecodeString(buffr, _screenshot_name);
|
||||
}
|
||||
|
||||
if (string >> 12 == 1) {
|
||||
// black number encoded in the string ID
|
||||
*buffr++ = 31; // BLACK
|
||||
return FormatNoCommaNumber(buffr, string & 0xFFF);
|
||||
}
|
||||
|
||||
switch (tab) {
|
||||
case 4:
|
||||
if (index >= 0xC0) return GetSpecialTownNameString(buffr, index - 0xC0);
|
||||
|
Reference in New Issue
Block a user