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

15 lines
383 B
Plaintext

$OpenBSD: patch-map_C,v 1.1 2002/10/06 00:49:03 naddy Exp $
--- map.C.orig Wed Mar 13 17:34:31 1996
+++ map.C Sun Oct 6 00:55:01 2002
@@ -27,6 +27,10 @@
void _map::init()
{
int i, j;
+ sx_log2 = MAP_SIZEX_LOG2;
+ sy_log2 = MAP_SIZEY_LOG2;
+ sx = 1 << sx_log2;
+ sy = 1 << sy_log2;
for (i=0; i<sx; i++)
for (j=0; j<sy; j++)
pos(i, j) = SPACE;