From db0059e0f0b2dd60719e04ad1aad147084796f49 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sat, 26 Aug 2023 14:08:20 +0200 Subject: [PATCH] port: infinitely shooting guard fix from 1964GEPD --- src/game/chraction.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/game/chraction.c b/src/game/chraction.c index 99af3c02b..04ceeb77e 100644 --- a/src/game/chraction.c +++ b/src/game/chraction.c @@ -7078,6 +7078,13 @@ bool chrTryModifyAttack(struct chrdata *chr, u32 attackflags, s32 entityid) && (chr->act_attack.flags & (ATTACKFLAG_AIMONLY | ATTACKFLAG_DONTTURN))) { chr->act_attack.flags = attackflags; chr->act_attack.entityid = entityid; +#ifndef PLATFORM_N64 + // infinitely shooting guard fix from 1964GEPD + struct anim *anim = chr->model->anim; + if (anim && anim->framea == anim->frameb) { + anim->frameb++; + } +#endif func0f031254(chr); return true; }