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
This commit is contained in:
alufolie91 committed 2026-02-25 17:10:36 +01:00
1 parent df70c4072c
commit c29d380aa1
1 file changed
+2 -2
+2 -2
View File
@@ -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