]> granicus.if.org Git - nethack/commit
fix #2251 - M-5 operation with number_pad:2
authornethack.rankin <nethack.rankin>
Wed, 13 Apr 2011 01:36:40 +0000 (01:36 +0000)
committernethack.rankin <nethack.rankin>
Wed, 13 Apr 2011 01:36:40 +0000 (01:36 +0000)
commit3148c15ee56b7413a3bc0440cd9df4b01615eeb4
treee52bce5e16ffc32716114df4c071696c3eb9fc3a
parent3e44a5fcdc1b407a6bd0779b121eb4bf1af2aa26
fix #2251 - M-5 operation with number_pad:2

     From a bug report, using Alt+5 when number_pad mode
is set to MSDOS compatibility (where Alt+5 is supposed to function as the
'G' movement prefix) didn't work correctly.  The code that did M-5 to G
conversion was being executed after the code which should have gotten G's
direction, resulting in strange behavior, probably using stale values for
u.dx and u.dy.  (With current dev code, I evidently had u.dx==0 && u.dy==0
so was getting "You can't get there from here..." which is actually pretty
amusing in the current context.  3.4.3 didn't have that feedback so I'm
not sure what happened in it; possibly just silent refusal to move.)
doc/fixes34.4
src/cmd.c