]> granicus.if.org Git - nethack/commitdiff
Add boulder pushing to therecmdmenu
authorPasi Kallinen <paxed@alt.org>
Wed, 24 Aug 2022 09:53:04 +0000 (12:53 +0300)
committerPasi Kallinen <paxed@alt.org>
Wed, 24 Aug 2022 09:53:04 +0000 (12:53 +0300)
src/cmd.c

index acb2bf31147e4cb7c9d0df0cd02278cab3a8f383..403bb065be6d5200e701a5b1c236bf8b746943e9 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -5469,6 +5469,9 @@ there_cmd_menu_next2u(
         mcmd_addmenu(win, MCMD_MOVE_DIR, "Move on the trap"), ++K;
     }
 
+    if (levl[x][y].glyph == objnum_to_glyph(BOULDER))
+        mcmd_addmenu(win, MCMD_MOVE_DIR, "Push the boulder"), ++K;
+
     mtmp = m_at(x, y);
     if (mtmp && !canspotmon(mtmp))
         mtmp = 0;