]> granicus.if.org Git - nethack/commit
Unify domove and lookaround trap/liquid avoidance code
authorPasi Kallinen <paxed@alt.org>
Fri, 25 Feb 2022 19:49:38 +0000 (21:49 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 25 Feb 2022 19:52:52 +0000 (21:52 +0200)
commitf88dce69702b99347affc8c230edac45bdc4f876
tree198ce20710de9873bcda385d5cca421cf002bcbc
parent54df272f50035edc1e38300ea3cb382d3b1a9c28
Unify domove and lookaround trap/liquid avoidance code

Nearly same code was in two places - the only difference was
how g.context.run == 1 was handled.  Previously, if you were
blind, and knew about the water or lava, you still ran into it.
Now, we always avoid the dunking if running/rushing.
src/hack.c