- removed unused animlock variable.

This commit is contained in:
Christoph Oelckers 2019-10-20 10:14:07 +02:00
parent ca789dc4d0
commit 215a7cdff3
3 changed files with 2 additions and 6 deletions

View file

@ -438,8 +438,7 @@ int32_t Anim_Play(const char *fn)
goto end_anim; goto end_anim;
} }
anim->animlock = 255; anim->animbuf = buffer.Data();
anim->animbuf = buffer.Data();
kread(handle, anim->animbuf, length); kread(handle, anim->animbuf, length);
kclose(handle); kclose(handle);
@ -576,8 +575,7 @@ end_anim:
tileDelete(TILE_ANIM); tileDelete(TILE_ANIM);
// this is the lock for anim->animbuf // this is the lock for anim->animbuf
anim->animlock = 1;
return !running; return !running;
} }

View file

@ -41,7 +41,6 @@ typedef struct
uint16_t numsounds; uint16_t numsounds;
uint8_t framedelay; uint8_t framedelay;
uint8_t frameflags; uint8_t frameflags;
uint8_t animlock;
} dukeanim_t; } dukeanim_t;
extern dukeanim_t * g_animPtr; extern dukeanim_t * g_animPtr;

View file

@ -38,7 +38,6 @@ typedef struct
uint16_t numsounds; uint16_t numsounds;
uint8_t framedelay; uint8_t framedelay;
uint8_t frameflags; uint8_t frameflags;
uint8_t animlock;
} dukeanim_t; } dukeanim_t;
extern dukeanim_t * g_animPtr; extern dukeanim_t * g_animPtr;