summaryrefslogtreecommitdiff
path: root/dedicated.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-27 10:40:04 +0000
committertruelight <truelight@openttd.org>2004-12-27 10:40:04 +0000
commit1f4c1e8821dfbb6bbb3e14e544d0801a0dfc8ac8 (patch)
tree1f0b40b7f8c78dba53f4aa7eea0d1eb47d0f1c80 /dedicated.c
parentf3c8f40c511871e94f4eeff54d3ccd221797b3ab (diff)
downloadopenttd-1f4c1e8821dfbb6bbb3e14e544d0801a0dfc8ac8.tar.xz
(svn r1281) -Fix: the OS/2 is now finished. Fixes:
- Networking - File selector issue - Keyboard input - Dedicated server console issue (use dedicated.cmd to open a server) - Plus many other minor issues
Diffstat (limited to 'dedicated.c')
-rw-r--r--dedicated.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/dedicated.c b/dedicated.c
index ed9df3b58..223015a14 100644
--- a/dedicated.c
+++ b/dedicated.c
@@ -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 @@ static const char *DedicatedVideoStart(char **parm) {
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;
}