Files
nethack/include
PatR 0ec355bdb4 fix github issue #426 - binding special commands
Binding 'repeat' (DOAGAIN, or redo) to a different key than ^A
didn't work as intended because the code that used it was
checking for DOAGAIN (a key value from config.h) instead of
g.Cmd.spkeys[NHKF_DOAGAIN] (the key currently bound to repeat).

Contrary to the github issue, re-bound prefix keys worked ok for
me if followed by a direction.  However, they behaved strangely
if followed by anything else.  If the keystroke was stolen from
some other command and that command hadn't been bound to another
key, following the prefix with a non-direction could end up
executing the command that used to own the key.  For example,
 BIND=d:nopickup
to use 'd' to move without auto-pickup would work if you used
d<direction> but if you used d<something-else> if would execute
the drop command.

The NHKF_REQMENU prefix could be bound to some key other than
'm' but it only worked as intended if the new key was a movement
prefix.

This also makes DOAGAIN be unconditional.  If it is deleted or
commented out in config.h, the default binding will be '\000' so
unusable (freeing up ^A for something), but still be available
to be bound to some key (perhaps even ^A).

This also includes an unrelated change to mdlib.c.  The comments
added to config.h will force a full rebuild.  Changing mdlib.c
now rather than separately will avoid forcing that twice.

Fixes #426
2020-12-25 13:57:05 -08:00
..
2018-11-11 10:29:52 -05:00
2019-11-27 09:53:40 -08:00
2020-11-01 14:30:25 -08:00
2020-10-14 09:25:45 -07:00
2015-05-25 09:21:15 +09:00
2020-09-28 16:25:31 -04:00
2020-12-10 15:06:26 -08:00
2020-09-28 17:30:22 -04:00
2020-11-13 20:27:17 +02:00
2020-12-23 10:43:58 -08:00
2020-01-29 10:29:37 -05:00
2015-05-25 09:21:15 +09:00
2020-12-20 12:32:29 +02:00
2020-12-13 10:27:49 -05:00
2019-01-28 10:02:08 +01:00
2015-05-25 09:21:15 +09:00
2020-12-04 09:30:21 +02:00
2020-11-13 20:27:17 +02:00
2020-12-21 19:02:11 -08:00
2020-12-13 10:27:49 -05:00
2020-11-15 13:51:47 +02:00
2020-09-28 16:25:31 -04:00
2020-08-12 16:15:28 -07:00
2020-10-23 19:47:10 +03:00
2020-12-13 10:27:49 -05:00
2020-12-08 12:58:36 -08:00
2020-08-20 16:56:50 -07:00