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...
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user