summaryrefslogtreecommitdiff
path: root/games/xevil/patches/patch-ak
blob: 03406c0f7cb4abddf0b31269a0c2df8553304068 (plain)
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
$NetBSD: patch-ak,v 1.3 2011/11/27 19:43:33 joerg Exp $

--- cmn/physical.cpp.orig	2000-01-19 20:38:14.000000000 +0000
+++ cmn/physical.cpp
@@ -33,10 +33,12 @@
 // Include Files
 #include "xdata.h"
 #include "physical.h"
-#include <iostream.h>
+#include <inttypes.h>
+#include <iostream>
+using namespace std;
 
 #if X11
-#include <strstream.h>
+#include <strstream>
 #endif
 #if WIN32
 #include <strstrea.h>
@@ -1844,7 +1846,7 @@ void* Moving::compute_key(Dir dir,int an
   }
 
   // Use the pixmap resource id as the base.
-  u_int cmnBitsId = (unsigned int)mc->pixmapBits[baseDir][animNum];
+  u_int cmnBitsId = (unsigned int)(uintptr_t)mc->pixmapBits[baseDir][animNum];
 
   // It is ok to call OneTransform::compute_key() even if there is no 
   // transformation, will just return 0x0.