pkgsrc/games/xdoom/patches/patch-bb
wiz 5ea5107654 Re-add xdoom, requested by drochner.
Address PR 24024 by marking it as not-for-lp64platforms.
2010-02-22 21:58:47 +00:00

27 lines
725 B
Text

$NetBSD: patch-bb,v 1.3 2010/02/22 21:58:48 wiz Exp $
--- linuxdoom-1.10/r_things.c.orig Mon Dec 22 21:00:50 1997
+++ linuxdoom-1.10/r_things.c Mon Aug 22 05:26:23 2022
@@ -179,7 +179,6 @@
char** check;
int i;
int l;
- int intname;
int frame;
int rotation;
int start;
@@ -210,13 +209,12 @@
memset (sprtemp,-1, sizeof(sprtemp));
maxframe = -1;
- intname = *(int *)namelist[i];
// scan the lumps,
// filling in the frames for whatever is found
for (l=start+1 ; l<end ; l++)
{
- if (*(int *)lumpinfo[l].name == intname)
+ if (memcmp(lumpinfo[l].name, namelist[i], 4) == 0)
{
frame = lumpinfo[l].name[4] - 'A';
rotation = lumpinfo[l].name[5] - '0';