Use L to shoot Charged Shots when LToCharge is true

This commit is contained in:
Kiloku
2025-01-20 14:32:27 -06:00
committed by Lywx
parent 6d9b263fc1
commit f0f1d64882
+1 -1
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++) {
if ((gActors[i].obj.status == OBJ_ACTIVE) && (gActors[i].lockOnTimers[player->num] != 0)) {
if ((gPlayerShots[14 - player->num].obj.status == SHOT_FREE) ||