From 215a7cdff3ebf59682be56d9dd4c2f2723d8d73a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 20 Oct 2019 10:14:07 +0200 Subject: [PATCH] - removed unused animlock variable. --- source/duke3d/src/anim.cpp | 6 ++---- source/duke3d/src/anim.h | 1 - source/rr/src/anim.h | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/source/duke3d/src/anim.cpp b/source/duke3d/src/anim.cpp index 137bd64c7..d3f2c1097 100644 --- a/source/duke3d/src/anim.cpp +++ b/source/duke3d/src/anim.cpp @@ -438,8 +438,7 @@ int32_t Anim_Play(const char *fn) goto end_anim; } - anim->animlock = 255; - anim->animbuf = buffer.Data(); + anim->animbuf = buffer.Data(); kread(handle, anim->animbuf, length); kclose(handle); @@ -576,8 +575,7 @@ end_anim: tileDelete(TILE_ANIM); // this is the lock for anim->animbuf - anim->animlock = 1; - + return !running; } diff --git a/source/duke3d/src/anim.h b/source/duke3d/src/anim.h index 45c174d32..9927eec32 100644 --- a/source/duke3d/src/anim.h +++ b/source/duke3d/src/anim.h @@ -41,7 +41,6 @@ typedef struct uint16_t numsounds; uint8_t framedelay; uint8_t frameflags; - uint8_t animlock; } dukeanim_t; extern dukeanim_t * g_animPtr; diff --git a/source/rr/src/anim.h b/source/rr/src/anim.h index d37300137..757f9fc67 100644 --- a/source/rr/src/anim.h +++ b/source/rr/src/anim.h @@ -38,7 +38,6 @@ typedef struct uint16_t numsounds; uint8_t framedelay; uint8_t frameflags; - uint8_t animlock; } dukeanim_t; extern dukeanim_t * g_animPtr;