(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

@@ -510,8 +510,6 @@ static void RegisterWndClass(void)
}
}
extern const char _openttd_revision[];
static void MakeWindow(bool full_screen)
{
_fullscreen = full_screen;
@@ -572,6 +570,7 @@ static void MakeWindow(bool full_screen)
ShowWindow(_wnd.main_wnd, SW_SHOWNORMAL); // remove maximize-flag
SetWindowPos(_wnd.main_wnd, 0, x, y, w, h, SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOZORDER);
} else {
extern const char _openttd_revision[];
char Windowtitle[50];
snprintf(Windowtitle, lengthof(Windowtitle), "OpenTTD %s", _openttd_revision);