Skip to content

Commit

Permalink
Use L to shoot Charged Shots when LToCharge is true
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiloku authored and KiritoDv committed Jan 20, 2025
1 parent 6d9b263 commit f0f1d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/fox_play.c
Original file line number Diff line number Diff line change
Expand Up @@ -3367,7 +3367,7 @@ bool Player_UpdateLockOn(Player* player) {
}
}

if (gInputPress->button & A_BUTTON) {
if (gInputPress->button & (CVarGetInteger("gLtoCharge", 0) == 1 ? L_TRIG : A_BUTTON)) {
for (i = 0; i < ARRAY_COUNT(gActors); i++) {
if ((gActors[i].obj.status == OBJ_ACTIVE) && (gActors[i].lockOnTimers[player->num] != 0)) {
if ((gPlayerShots[14 - player->num].obj.status == SHOT_FREE) ||
Expand Down

0 comments on commit f0f1d64

Please sign in to comment.