(svn r6766) -Codechange: Move _openttd_revision[] into the functions that use it instead of global

This commit is contained in:
Darkvater
2006-10-13 15:52:22 +00:00
parent 35b059210d
commit 1436bbbc84
5 changed files with 5 additions and 10 deletions

View File

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