summaryrefslogtreecommitdiff
path: root/games/xkobo/files/patch-ae
diff options
context:
space:
mode:
authorChris D. Faulhaber <jedgar@FreeBSD.org>2000-01-28 00:45:32 +0000
committerChris D. Faulhaber <jedgar@FreeBSD.org>2000-01-28 00:45:32 +0000
commit430ae55a49dff8084116ad770f72fe9b024b3db6 (patch)
tree56567edffc8c9b16b3fef6ac89cde8bbc2927b3d /games/xkobo/files/patch-ae
parentUpdate port to 2.3.0 (diff)
Fix the new compiler problem as reported by bento.
PR: 16385 Submitted by: Maintainer With help from: Alex Langer <alex@big.endian.de>
Notes
Notes: svn path=/head/; revision=25136
Diffstat (limited to 'games/xkobo/files/patch-ae')
-rw-r--r--games/xkobo/files/patch-ae31
1 files changed, 31 insertions, 0 deletions
diff --git a/games/xkobo/files/patch-ae b/games/xkobo/files/patch-ae
new file mode 100644
index 000000000000..39b6e1805c34
--- /dev/null
+++ b/games/xkobo/files/patch-ae
@@ -0,0 +1,31 @@
+--- map.h.orig Wed Apr 3 23:58:52 1996
++++ map.h Tue Jan 18 19:15:44 2000
+@@ -38,14 +38,14 @@
+ #define HIT_MASK (CORE | U_MASK | R_MASK | D_MASK | L_MASK)
+
+ class _map{
+- const int sx_log2 = MAP_SIZEX_LOG2;
+- const int sy_log2 = MAP_SIZEY_LOG2;
+- const int sx = 1 << sx_log2;
+- const int sy = 1 << sy_log2;
++ int sx_log2;
++ int sy_log2;
++ int sx;
++ int sy;
+ int sitex[SITE_MAX];
+ int sitey[SITE_MAX];
+ int site_max;
+- char data[1 << (sx_log2 + sy_log2)];
++ char data[1 << (MAP_SIZEX_LOG2 + MAP_SIZEY_LOG2)];
+ int maze_pop();
+ void maze_push(int x, int y);
+ void maze_move_and_push(int x, int y, int d);
+@@ -54,7 +54,7 @@
+ void init();
+ void make_maze(int x, int y, int difx, int dify);
+ void convert(int ratio); /* ratio < 64 */
+- inline char& pos(int x, int y){ return data[(y<<sx_log2) + x];}
++ inline char& pos(int x, int y){ return data[(y<<MAP_SIZEY_LOG2) + x];}
+ };
+
+