1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-27 02:20:36 +00:00

mirror:: fixed a but with target_at not cleared

This commit is contained in:
Zeno Rogue 2023-10-29 09:22:11 +01:00
parent c91dc341ae
commit 95dc72a582

View File

@ -224,7 +224,7 @@ EX void switch_fire_mode() {
addMessage(items[itCrossbow] ? XLAT("Note: cannot fire again yet. Turns to reload: %1.", its(items[itCrossbow])) : XLAT("Fire crossbow! Click to aim, click again to confirm.")); addMessage(items[itCrossbow] ? XLAT("Note: cannot fire again yet. Turns to reload: %1.", its(items[itCrossbow])) : XLAT("Fire crossbow! Click to aim, click again to confirm."));
fire_mode = true; fire_mode = true;
clear_bowpath(); clear_bowpath();
targets = {}; target_at = {};
} }
else if(fire_mode) { else if(fire_mode) {
addMessage(items[itCrossbow] ? XLAT("Fire mode disabled.") : XLAT("Firing cancelled.")); addMessage(items[itCrossbow] ? XLAT("Fire mode disabled.") : XLAT("Firing cancelled."));