Skip to content

Commit

Permalink
Merge pull request #1284 from newbytf/dev-cur
Browse files Browse the repository at this point in the history
weapons: fix firing after dead when gibbed
  • Loading branch information
newbytf authored Jan 19, 2024
2 parents 3ea6960 + dbf4143 commit d98d981
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions share/animate.qc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ void FO_SetClientThink(void() func, float offset, float override = TRUE) {
}

void client_anim_frames(void() parent_thunk, void() extra, anim_t* anim) {
if (self.deadflag)
return;

float tidx = *thinkindex()++ - 1;

int wfi = tidx % anim->num_wf;
Expand Down

0 comments on commit d98d981

Please sign in to comment.