summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-13 09:01:24 +0000
committertruelight <truelight@openttd.org>2004-12-13 09:01:24 +0000
commitc0603e476872ce76838d81f46c2e75e6636d1e65 (patch)
tree9c58fdb7dda39adeac5768302cd817ff1dcdb45d /console.c
parent523b37a3e9156d6ea2ca8f1bfdfdf9b95b4c4f1f (diff)
downloadopenttd-c0603e476872ce76838d81f46c2e75e6636d1e65.tar.xz
(svn r1042) -Fix: [Network] Hopefully enabled revision-check for windows (somehow
windows uses WITH_REV_HACK instead of WITH_REV :s)
Diffstat (limited to 'console.c')
-rw-r--r--console.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/console.c b/console.c
index ce2b654ed..22256d5c2 100644
--- a/console.c
+++ b/console.c
@@ -231,9 +231,14 @@ static void IConsoleWndProc(Window* w, WindowEvent* e)
void IConsoleInit(void)
{
uint i;
+#ifdef WITH_REV_HACK
+ #define WITH_REV
+ const char _openttd_revision[] = WITH_REV_HACK;
+#else
#if defined(WITH_REV)
extern char _openttd_revision[];
#endif
+#endif
_iconsole_output_file = NULL;
_iconsole_color_default = 1;
_iconsole_color_error = 3;
@@ -588,7 +593,7 @@ void IConsoleVarRegister(const char* name, void* addr, _iconsole_var_types type)
item_new->hook_access = NULL;
item_new->hook_after_change = NULL;
item_new->hook_before_change = NULL;
-
+
}
void IConsoleVarMemRegister(const char* name, _iconsole_var_types type)