From 1436bbbc842ca5177fcd41c74092919ffacc0e93 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 13 Oct 2006 15:52:22 +0000 Subject: (svn r6766) -Codechange: Move _openttd_revision[] into the functions that use it instead of global --- strings.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'strings.c') diff --git a/strings.c b/strings.c index 7166b28cf..7e20c2c01 100644 --- a/strings.c +++ b/strings.c @@ -37,8 +37,6 @@ static char *GetSpecialPlayerNameString(char *buff, int ind, const int32 *argv); static char *FormatString(char *buff, const char *str, const int32 *argv, uint casei); -extern const char _openttd_revision[]; - typedef struct LanguagePack { uint32 ident; uint32 version; // 32-bits of auto generated version info which is basically a hash of strings.h @@ -568,6 +566,7 @@ static const Units units[] = { static char *FormatString(char *buff, const char *str, const int32 *argv, uint casei) { + extern const char _openttd_revision[]; byte b; const int32 *argv_orig = argv; uint modifier = 0; -- cgit v1.2.3-54-g00ecf