pkgsrc/games/jetpack/patches/patch-aa
garbled f0c2b25c65 New pkg for jetpack-1.0. Patches taken from FreeBSD ports collection.
(last time I do that.. ugh)
an arcade action game for X Windows.
1998-08-23 11:24:52 +00:00

43 lines
965 B
Text

$NetBSD: patch-aa,v 1.1 1998/08/23 11:24:53 garbled Exp $
*** erase.c.orig Wed Mar 25 17:19:41 1992
--- erase.c Thu Mar 26 11:19:35 1992
***************
*** 11,16 ****
--- 11,17 ----
#ifndef BLIT
+ #define MAXTOUCH 10
#define MAXOBJECTS 6+MAXLINES+MAXFIREBALLS+MAXSWEEPERS+MAXFUELPODS+MAXGUARDS+MAXHIGHSCORES/5
/* Structure for eraseable zones that minimize flicker
***************
*** 19,25 ****
int type, num;
int x, y, w, h;
int numtouch;
! int touch[MAXOBJECTS];
int erased, drawn;
};
--- 20,26 ----
int type, num;
int x, y, w, h;
int numtouch;
! int touch[MAXTOUCH];
int erased, drawn;
};
***************
*** 57,62 ****
--- 58,67 ----
if(zone_intersect(numzones,j)) {
zones[j].touch[zones[j].numtouch] = numzones;
zones[j].numtouch++;
+ if (zones[j].numtouch == MAXTOUCH) {
+ zones[j].numtouch = -1;
+ printf("Reached maxtouch for zone %d\n", numzones);
+ }
break;
}
}