From 9e35a9409704f0d583b7522fa774aef879c68ab0 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 1 Sep 2018 19:42:23 +0300 Subject: [PATCH] Fix pickup awful hack If pickup has been bound to some other key than ',', the awful hack did not work correctly. Testing, I couldn't notice the difference, but probably just not doing the right thing... --- src/hack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hack.c b/src/hack.c index 0687c0ef6..3246bb6af 100644 --- a/src/hack.c +++ b/src/hack.c @@ -2476,7 +2476,7 @@ dopickup() struct trap *traphere = t_at(u.ux, u.uy); /* awful kludge to work around parse()'s pre-decrement */ - count = (multi || (save_cm && *save_cm == ',')) ? multi + 1 : 0; + count = (multi || (save_cm && *save_cm == cmd_from_func(dopickup))) ? multi + 1 : 0; multi = 0; /* always reset */ /* uswallow case added by GAN 01/29/87 */ if (u.uswallow) {