From b6c74c1c2077ce0c4dcd525890ea739a807f1508 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 14 Dec 2004 20:27:00 +0000 Subject: (svn r1090) -Fix: Made the _openttd_revision variable global, and with that hopefully killed the windows-revision problem. If WITH_REV is defined, for both Windows as *nix system _openttd_revision is filled with normal info, else _openttd_revision is set to 'norev000' -Fix: Small possible server-crash --- ttd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ttd.c') diff --git a/ttd.c b/ttd.c index ea2bffc33..2339337d6 100644 --- a/ttd.c +++ b/ttd.c @@ -28,6 +28,11 @@ #include +/* Define the _openttd_revision tag if it is not defined */ +#ifndef WITH_REV + const char _openttd_revision[] = "norev000"; +#endif + void GameLoop(); void IncreaseSpriteLRU(); @@ -645,7 +650,7 @@ int ttd_main(int argc, char* argv[]) // initialize the ingame console IConsoleInit(); IConsoleCmdExec("exec scripts/autoexec.scr 0"); - + InitPlayerRandoms(); #ifdef ENABLE_NETWORK -- cgit v1.2.3-54-g00ecf