diff options
author | pasky <pasky@openttd.org> | 2005-04-02 15:03:48 +0000 |
---|---|---|
committer | pasky <pasky@openttd.org> | 2005-04-02 15:03:48 +0000 |
commit | f053bbb4f4ed542eb1e3e9d814ec80c569645fa3 (patch) | |
tree | 8cb47dd0760f518a9aa2fc1516e78b28d69fda21 /strings.c | |
parent | 65ed56e970ac3438535b6bdee04ba6b093cb1e21 (diff) | |
download | openttd-f053bbb4f4ed542eb1e3e9d814ec80c569645fa3.tar.xz |
(svn r2125) - Feature: In the intro dialog, show a map size selector below the landscape type selector.
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |