win32.c
branch0.5
changeset 5496 e50adc01d7e3
parent 5472 16f71955fc3b
child 5536 11b3dd55f6f4
--- a/win32.c	Tue May 15 21:42:27 2007 +0000
+++ b/win32.c	Tue May 15 22:00:41 2007 +0000
@@ -887,6 +887,9 @@
 	 * save it because argv[] points into this buffer and thus needs to
 	 * be available between subsequent calls to FS2OTTD() */
 	char cmdlinebuf[MAX_PATH];
+
+	/* Check if a win9x user started the win32 version */
+	if (HASBIT(GetVersion(), 31)) error("This version of OpenTTD doesn't run on windows 95/98/ME.\nPlease download the win9x binary and try again.");
 #endif /* UNICODE */
 
 	cmdline = WIDE_TO_MB_BUFFER(GetCommandLine(), cmdlinebuf, lengthof(cmdlinebuf));