(svn r2681) - Fix OS/2 port, please do not modify openttd.wpj/tgt by hand unless you know what you're doing!
authororudge
Fri, 22 Jul 2005 16:14:24 +0000
changeset 2167 5686131337a4
parent 2166 fe25867ec83e
child 2168 626588317daf
(svn r2681) - Fix OS/2 port, please do not modify openttd.wpj/tgt by hand unless you know what you're doing!
misc_gui.c
openttd.tgt
os/os2/openttd.wpj
os2.c
--- a/misc_gui.c	Fri Jul 22 15:12:51 2005 +0000
+++ b/misc_gui.c	Fri Jul 22 16:14:24 2005 +0000
@@ -90,10 +90,9 @@
 
 					// If the accepted value is less than 8, show it in 1/8:ths
 					if (lid->ac[i] < 8) {
-						int32 argv[2] = {
-							lid->ac[i],
-							_cargoc.names_s[i]
-						};
+						int32 argv[2];
+						argv[0] = lid->ac[i];
+						argv[1] = _cargoc.names_s[i];
 						p = GetStringWithArgs(p, STR_01D1_8, argv);
 					} else {
 						p = GetString(p, _cargoc.names_s[i]);
--- a/openttd.tgt	Fri Jul 22 15:12:51 2005 +0000
+++ b/openttd.tgt	Fri Jul 22 16:14:24 2005 +0000
@@ -411,8 +411,8 @@
 0
 105
 MItem
-4
-ai_old.c
+10
+ai_build.c
 106
 WString
 4
@@ -429,8 +429,8 @@
 0
 109
 MItem
-10
-ai_build.c
+8
+ai_new.c
 110
 WString
 4
@@ -448,7 +448,7 @@
 113
 MItem
 8
-ai_new.c
+ai_old.c
 114
 WString
 4
--- a/os/os2/openttd.wpj	Fri Jul 22 15:12:51 2005 +0000
+++ b/os/os2/openttd.wpj	Fri Jul 22 16:14:24 2005 +0000
@@ -43,8 +43,8 @@
 WFileName
 17
 ..\..\openttd.tgt
-42
-66
+0
+18
 11
 VComponent
 12
--- a/os2.c	Fri Jul 22 15:12:51 2005 +0000
+++ b/os2.c	Fri Jul 22 16:14:24 2005 +0000
@@ -1,11 +1,15 @@
 #include "stdafx.h"
 #include "openttd.h"
+#include "variables.h"
 #include "window.h"
 #include "string.h"
 #include "table/strings.h"
 #include "hal.h"
 #include "gfx.h"
 #include "gui.h"
+#include "saveload.h"
+#include "functions.h"
+#include "macros.h"
 
 #include <direct.h>
 #include <unistd.h>
@@ -25,6 +29,8 @@
 #include <os2.h>
 #include <os2me.h>
 
+#include <i86.h>
+
 #if defined(WITH_SDL)
 #include <SDL.h>
 #endif
@@ -772,3 +778,9 @@
 
 	DosWaitThread(&thread1, DCWW_WAIT);
 }
+
+void CSleep(int milliseconds)
+{
+	delay(milliseconds);
+}
+