Skip to content

Commit

Permalink
Merge pull request #293 from Nyxem64/muzzleflash
Browse files Browse the repository at this point in the history
GE Muzzle flash addition
  • Loading branch information
fgsfdsfgs authored Dec 16, 2023
2 parents cdd7d6e + cabd40f commit 4233e5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/game/bondgun.c
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,13 @@ void bgun0f09a6f8(struct handweaponinfo *info, s32 handnum, struct hand *hand, s
if (func->flags & FUNCFLAG_NOMUZZLEFLASH) {
hand->flashon = false;
} else {
hand->flashon = true;
if ( func->type != INVENTORYFUNCTYPE_SHOOT_SINGLE) {
if (hand->shotstotake % 2 == 1) {
hand->flashon = true;
}
} else {
hand->flashon = true;
}
}

bgunStartSlide(handnum);
Expand Down

0 comments on commit 4233e5e

Please sign in to comment.