diff options
Diffstat (limited to 'src/engine/fox_beam.c')
| -rw-r--r-- | src/engine/fox_beam.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/fox_beam.c b/src/engine/fox_beam.c index ac4c7a16..37152833 100644 --- a/src/engine/fox_beam.c +++ b/src/engine/fox_beam.c @@ -1769,9 +1769,10 @@ void PlayerShot_SearchLockOnTarget(PlayerShot* shot) { !(gControllerHold[shot->sourceId].button & A_BUTTON) || (shot->timer == 0)) { Object_Kill(&shot->obj, shot->sfxSource); } - } else { + } else { + bool rapidFire = CVarGetInteger("gRapidFire", 0) == 1; if ((shot->obj.pos.y < gGroundHeight) || PlayerShot_FindLockTarget(shot) || - !(gControllerHold[gMainController].button & A_BUTTON) || (shot->timer == 0)) { + (!(gControllerHold[gMainController].button & A_BUTTON)^rapidFire) || (shot->timer == 0)) { Object_Kill(&shot->obj, shot->sfxSource); } } |
