openbsd-ports/games/xkobo/patches/patch-map_h
naddy 52fab76073 - Regen ancient patches.
- C++ fix for gcc3.
ok espie@
2002-10-06 00:49:02 +00:00

24 lines
725 B
Plaintext

$OpenBSD: patch-map_h,v 1.1 2002/10/06 00:49:03 naddy Exp $
--- map.h.orig Wed Apr 3 23:58:52 1996
+++ map.h Sun Oct 6 00:55:01 2002
@@ -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);