--- a/strings.c Tue Dec 14 21:56:01 2004 +0000
+++ b/strings.c Wed Dec 15 00:31:08 2004 +0000
@@ -20,6 +20,14 @@
static uint _langtab_num[32]; // Offset into langpack offs
static uint _langtab_start[32]; // Offset into langpack offs
+#if defined(WITH_REV)
+ extern const char _openttd_revision[];
+#elif defined(WITH_REV_HACK)
+ const char _openttd_revision[] = WITH_REV_HACK;
+#else
+ const char _openttd_revision[] = NOREV_STRING;
+#endif
+
typedef byte *PlayerNameGeneratorProc(byte *buffr);
typedef struct {
@@ -433,9 +441,7 @@
buff = FormatNoCommaNumber(buff, GetParamInt32());
break;
case 2: /* {REV} */
-#ifdef WITH_REV
buff = str_cat(buff, (const byte*)_openttd_revision);
-#endif
break;
case 3: { /* {SHORTCARGO} */
// Short description of cargotypes. Layout: