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 #778.

(cherry picked from commit b306ea2)
  • Loading branch information
ebering authored and rawlins committed Jul 31, 2018
1 parent 104816b commit c8722a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crawl-ref/source/main.cc
Expand Up @@ -3259,6 +3259,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 c8722a8

Please sign in to comment.