Index: openttd.c =================================================================== --- openttd.c (revision 3257) +++ openttd.c (working copy) @@ -60,7 +60,7 @@ extern void SetDifficultyLevel(int mode, GameOptions *gm_opt); extern void DoStartupNewPlayer(bool is_ai); extern void ShowOSErrorBox(const char *buf); - +extern char _openttd_revision[]; /* TODO: usrerror() for errors which are not of an internal nature but * caused by the user, i.e. missing files or fatal configuration errors. * Post-0.4.0 since Celestar doesn't want this in SVN before. --pasky */ @@ -119,7 +119,10 @@ *lenp = len; return mem; } - +static void showversion(void) +{ + ShowInfoF("OpenTTD Revision: %s\n", _openttd_revision); +} static void showhelp(void) { char buf[4096], *p; @@ -400,6 +403,7 @@ case -2: case 'h': showhelp(); + showversion(); return 0; } }