(svn r2125) - Feature: In the intro dialog, show a map size selector below the landscape type selector.

This commit is contained in:
pasky
2005-04-02 15:03:48 +00:00
parent 65ed56e970
commit f053bbb4f4
5 changed files with 71 additions and 19 deletions

View File

@@ -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);