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

opening inventory mode when you can just shoot should be fixed

This commit is contained in:
Zeno Rogue 2024-02-22 18:16:27 +01:00
parent 60980bcb8b
commit e33f26d51f

View File

@ -418,6 +418,8 @@ EX void checkmove() {
for(int i=0; i<cwt.at->type; i++) for(int i=0; i<cwt.at->type; i++)
yasc_code += move_issues[i].type; yasc_code += move_issues[i].type;
if(!canmove && bow::crossbow_mode() && !items[itCrossbow]) canmove = bow::have_bow_target();
#if CAP_INV #if CAP_INV
if(inv::on && !canmove && !inv::incheck) { if(inv::on && !canmove && !inv::incheck) {
if(inv::remaining[itOrbSafety] || inv::remaining[itOrbFreedom]) if(inv::remaining[itOrbSafety] || inv::remaining[itOrbFreedom])
@ -432,8 +434,6 @@ EX void checkmove() {
} }
#endif #endif
if(!canmove && bow::crossbow_mode() && !items[itCrossbow]) canmove = bow::have_bow_target();
if(!canmove) { if(!canmove) {
create_yasc_message(); create_yasc_message();
achievement_final(true); achievement_final(true);