aboutsummaryrefslogtreecommitdiffstats
path: root/games/xevil/files/patch-cmn__xetp.cpp
blob: ab2a4f22859d408322bb049ceb8af29959833bc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- cmn/xetp.cpp.orig   2012-05-27 06:52:30.000000000 +0900
+++ cmn/xetp.cpp    2012-05-27 06:53:11.000000000 +0900
@@ -29,9 +29,9 @@
 
 #include "stdafx.h"
 
-#include <iostream.h>
+#include <iostream>
 #if X11
-#include <strstream.h>
+#include <sstream>
 #endif
 #if WIN32
 #include <strstrea.h>
@@ -53,6 +53,8 @@
 #include "xetp.h"
 
 
+using namespace std;
+
 
 void XETP::check_sizes() {
   XETPBasic::check_sizes();
@@ -159,7 +161,7 @@
   for (n = 0; n < physicals.length(); n++) {
     PhysicalP p = (PhysicalP)physicals.get(n);
     // computing object_length twice, but who cares.
-    _send_object(out,p,turn,(TickType)tickTypes.get(n),
+    _send_object(out,p,turn,(long)tickTypes.get(n),
                  compute_object_length(p));
   }
   
@@ -274,7 +276,7 @@
 
 
 
-void XETP::send_message(OutStreamP out,char *msg) {
+void XETP::send_message(OutStreamP out,const char *msg) {
   assert(msg);
   u_int len = strlen(msg);
   
@@ -293,7 +295,7 @@
 
 
 
-void XETP::send_arena_message(OutStreamP out,int time,char *msg) {
+void XETP::send_arena_message(OutStreamP out,int time,const char *msg) {
   assert(msg);
   u_int len = sizeof(int) +  // time
     strlen(msg);             // string body