summaryrefslogtreecommitdiff
path: root/sys/src/games/doom/r_things.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-09-04 23:02:37 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-09-04 23:02:37 +0200
commit460f482ad05aeb12a7ed3bb92adeb03d8c6e4c0a (patch)
treec311e2d534a252e4ed88fcab8505063e3d43289f /sys/src/games/doom/r_things.c
parent3a322e9f329909c3c751de6cb5da33e7280c2738 (diff)
doom: fix alignment issues for arm
Diffstat (limited to 'sys/src/games/doom/r_things.c')
-rw-r--r--sys/src/games/doom/r_things.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/games/doom/r_things.c b/sys/src/games/doom/r_things.c
index 75d0a3fbc..ffd0f6582 100644
--- a/sys/src/games/doom/r_things.c
+++ b/sys/src/games/doom/r_things.c
@@ -173,12 +173,12 @@ void R_InitSpriteDefs (char** namelist)
/* char** check; */
int i;
int l;
- int intname;
int frame;
int rotation;
int start;
int end;
int patched;
+ char* name;
/* BUG
This would work if the namelist was NULL terminated which it is not.
@@ -213,13 +213,13 @@ numsprites = NUMSPRITES;
memset (sprtemp,-1, sizeof(sprtemp));
maxframe = -1;
- intname = *(int *)namelist[i];
+ name = 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, name, 4) == 0)
{
frame = lumpinfo[l].name[4] - 'A';
rotation = lumpinfo[l].name[5] - '0';