added a jump button to herecmdmenu

This commit is contained in:
JodiJodington
2026-06-24 12:17:12 -05:00
parent 06436b69d3
commit 3574a99d35
+6
View File
@@ -4414,6 +4414,7 @@ enum menucmd {
MCMD_OFFER, MCMD_OFFER,
MCMD_INVENTORY, MCMD_INVENTORY,
MCMD_CAST_SPELL, MCMD_CAST_SPELL,
MCMD_JUMP,
MCMD_THROW_OBJ, MCMD_THROW_OBJ,
MCMD_TRAVEL, MCMD_TRAVEL,
@@ -4520,6 +4521,9 @@ there_cmd_menu_self(winid win, coordxy x, coordxy y, int *act UNUSED)
mcmd_addmenu(win, MCMD_UNTRAP_HERE, mcmd_addmenu(win, MCMD_UNTRAP_HERE,
"Attempt to disarm trap"), ++K; "Attempt to disarm trap"), ++K;
} }
if (Jumping) {
mcmd_addmenu(win, MCMD_JUMP, "Jump"), ++K;
}
return K; return K;
} }
@@ -4842,6 +4846,8 @@ act_on_act(
case MCMD_CAST_SPELL: case MCMD_CAST_SPELL:
cmdq_add_ec(CQ_CANNED, docast); cmdq_add_ec(CQ_CANNED, docast);
break; break;
case MCMD_JUMP:
cmdq_add_ec(CQ_CANNED, dojump);
default: default:
break; break;
} }