]> granicus.if.org Git - nethack/commit
followup: drinking from sinks while levitating
authorcohrs <cohrs>
Tue, 11 Jan 2005 19:47:37 +0000 (19:47 +0000)
committercohrs <cohrs>
Tue, 11 Jan 2005 19:47:37 +0000 (19:47 +0000)
commite9285c9fe205845a91617e3070e566ad0ab1bbec
tree6dde2d0a3793b81434ab0773eb9948d3bdbc48a7
parentd957558be4367668bb12b649ba8e228c5e1d0630
followup: drinking from sinks while levitating
This is a followup to the patch I made a couple months ago.  It replaces
the "!Levitation && !u.uswallow" checks with can_reach_floor(), which
makes a more complete set of checks and is more consistent.  I applied
this to fountains too.  I doubt that fountains hit the ceiling, and the
checks also seem reasonable for heights in between (e.g. while mounted).
src/potion.c