1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-25 15:30:13 +00:00

fixed checkmove giving wrong answer when bow::fire_mode is active

This commit is contained in:
Zeno Rogue 2023-12-22 01:07:12 +01:00
parent eb3406d7dc
commit a6b30fa564

View File

@ -304,6 +304,7 @@ EX void checkmove() {
if(true) { if(true) {
for(int i=0; i<cwt.at->type; i++) { for(int i=0; i<cwt.at->type; i++) {
dynamicval<bool> fm(bow::fire_mode, false);
if(movepcto(1, -1, true)) { if(movepcto(1, -1, true)) {
canmove = legalmoves[cwt.spin] = true; canmove = legalmoves[cwt.spin] = true;
} }