blob: 7cadf6ccab688288101a447bb037ddca0897f4e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$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';
|