dedicated.c
changeset 810 7c51ba5a4368
parent 796 42a3669a939f
child 915 013cb2d74800
--- a/dedicated.c	Mon Dec 27 10:24:38 2004 +0000
+++ b/dedicated.c	Mon Dec 27 10:40:04 2004 +0000
@@ -20,6 +20,8 @@
 #	include <unistd.h>
 #	include <conio.h>
 #	define STDIN 0  /* file descriptor for standard input */
+
+	extern void OS2_SwitchToConsoleMode();
 #endif
 
 #ifdef UNIX
@@ -100,6 +102,11 @@
 	SetConsoleTitle("OpenTTD Dedicated Server");
 #endif
 
+#ifdef __OS2__
+	// For OS/2 we also need to switch to console mode instead of PM mode
+	OS2_SwitchToConsoleMode();
+#endif
+
 	DEBUG(misc,0)("Loading dedicated server...");
 	return NULL;
 }