From c29d380aa1b497d9ab43e73a8a9a5deec233c99f Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 25 Feb 2026 17:07:27 +0100 Subject: [PATCH] hw_md2: remove pointless float casts durs and tics are int32. and so is var2, anim_duration is uint16 but that still makes no sense lul --- src/hardware/hw_md2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/hw_md2.c b/src/hardware/hw_md2.c index 2fd33f65b..d9bf41645 100644 --- a/src/hardware/hw_md2.c +++ b/src/hardware/hw_md2.c @@ -1336,8 +1336,8 @@ void HWR_DrawMD2(gl_vissprite_t *spr) if (spr->mobj->frame & FF_ANIMATE) { // set duration and tics to be the correct values for FF_ANIMATE states - durs = (float)spr->mobj->state->var2; - tics = (float)spr->mobj->anim_duration; + durs = spr->mobj->state->var2; + tics = (INT32)spr->mobj->anim_duration; } //FIXME: this is not yet correct