summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiloku <mateus.sateles@protonmail.com>2025-01-19 09:28:09 -0300
committerLywx <kiritodev01@gmail.com>2025-01-20 14:32:27 -0600
commitf0f1d648828379c3d1c434e70dfcca4cfe6a5048 (patch)
tree1445e28544bdb0b1398876018a4d3a19c9c202ba
parent6d9b263fc12e67142a453cd94a432e4ced3c877e (diff)
Use L to shoot Charged Shots when LToCharge is true
-rw-r--r--src/engine/fox_play.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/fox_play.c b/src/engine/fox_play.c
index 0bffddad..df77f166 100644
--- a/src/engine/fox_play.c
+++ b/src/engine/fox_play.c
@@ -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) ||