pkgsrc/games/xdoom/patches/patch-bb

27 lines
729 B
Text

$NetBSD: patch-bb,v 1.1 2002/08/22 05:29:51 mycroft 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';