Use L to shoot Charged Shots when LToCharge is true
Some checks failed
GenerateBuilds / generate-port-o2r (push) Has been cancelled
GenerateBuilds / build-windows (push) Has been cancelled
GenerateBuilds / build-macos (push) Has been cancelled
GenerateBuilds / build-linux (push) Has been cancelled

This commit is contained in:
Kiloku 2025-01-19 09:28:09 -03:00 committed by Lywx
parent 6d9b263fc1
commit f0f1d64882

View File

@ -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++) { for (i = 0; i < ARRAY_COUNT(gActors); i++) {
if ((gActors[i].obj.status == OBJ_ACTIVE) && (gActors[i].lockOnTimers[player->num] != 0)) { if ((gActors[i].obj.status == OBJ_ACTIVE) && (gActors[i].lockOnTimers[player->num] != 0)) {
if ((gPlayerShots[14 - player->num].obj.status == SHOT_FREE) || if ((gPlayerShots[14 - player->num].obj.status == SHOT_FREE) ||