]> granicus.if.org Git - nethack/commit
fix steed-in-trap message grammar when hallucinating
authornethack.rankin <nethack.rankin>
Sat, 27 Dec 2003 02:45:47 +0000 (02:45 +0000)
committernethack.rankin <nethack.rankin>
Sat, 27 Dec 2003 02:45:47 +0000 (02:45 +0000)
commit99413fcd044b445544da0610a84c26b1e60f9588
tree35dbc5bab69937c85c3d80853a6bea92d3ca8920
parent4a2dc925bb8d04988ed572b79f9308e7bf71dd3a
fix steed-in-trap message grammar when hallucinating

     Fix the recently reported bug about the wording of trap messsages
when hero's steed has a name but hallucination prevents that name from
being used, yielding "You lead poor wombat into a pit!" and the like.

     I accidentally deleted the message so can't reply to the sender.

[Before applying this patch, take a look at the POLY_TRAP case of the
switch statement in steedintrap().  A misplaced brace has drawn the
default case into one of its `if' statements.  Evidently it's valid C
syntax, but someone among us must have access to a compiler or lint
checking tool which is capable to diagnosing such things.]
doc/fixes34.4
src/trap.c