port: infinitely shooting guard fix from 1964GEPD

This commit is contained in:
fgsfds committed 2023-08-26 14:08:20 +02:00
1 parent 2b27c2dc6a
commit db0059e0f0
1 file changed
+7
+7
View File
@@ -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;
}