Skip to content

Commit

Permalink
Fix bug 11478: Movement-key actions and Wu Jian
Browse files Browse the repository at this point in the history
In _move_player, the easy-open door let control flow continue through
the function to behaviors that should only trigger upon moving. The most
noticable is the Wu Jian processing, leading to the bug.

The function could use some further simplifications, it's a bit
spaghetti.

Closes crawl#778.
  • Loading branch information
ebering authored and NormalPerson7 committed Jun 27, 2018
1 parent 8dd2c2b commit 2b19c77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crawl-ref/source/main.cc
Expand Up @@ -3242,6 +3242,8 @@ static void _move_player(coord_def move)
&& feat_is_closed_door(targ_grid))
{
_open_door(move);
move.reset();
return;
}
else if (!targ_pass && grd(targ) == DNGN_MALIGN_GATEWAY
&& !attacking && !you.is_stationary())
Expand Down

0 comments on commit 2b19c77

Please sign in to comment.