From 7a3249ce14ac528a5cdf9ca2d0a62535cf2bb1cd Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 3 May 2010 18:23:15 +0000 Subject: Fix compiler warnings. Subversion-branch: /branches/raven-branch Subversion-revision: 1934 --- src/hexen/r_things.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/hexen/r_things.c') diff --git a/src/hexen/r_things.c b/src/hexen/r_things.c index 0517fd49..aeba11c4 100644 --- a/src/hexen/r_things.c +++ b/src/hexen/r_things.c @@ -158,7 +158,7 @@ void R_InstallSpriteLump(int lump, unsigned frame, unsigned rotation, void R_InitSpriteDefs(char **namelist) { char **check; - int i, l, intname, frame, rotation; + int i, l, frame, rotation; int start, end; // count the number of sprite names @@ -184,13 +184,12 @@ void R_InitSpriteDefs(char **namelist) 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 (!strncmp(lumpinfo[l].name, namelist[i], 4)) { frame = lumpinfo[l].name[4] - 'A'; rotation = lumpinfo[l].name[5] - '0'; -- cgit v1.2.3