Skip to content

Commit

Permalink
fix(port): allow blind throw while peeking upstairs/downstairs (#4218)
Browse files Browse the repository at this point in the history
* Update game.cpp

* Update game.cpp

Co-Authored-By: Zeropol <28099824+zeropol@users.noreply.github.com>

---------

Co-authored-by: Zeropol <28099824+zeropol@users.noreply.github.com>
Co-authored-by: Chaosvolt <chaosvolt@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 11, 2024
1 parent 33560c6 commit 06ac1c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5680,10 +5680,10 @@ void game::peek()
vertical_move( p->z, false, true );

if( old_pos != u.pos() ) {
look_around();
vertical_move( p->z * -1, false, true );
} else {
return;
}
return;
}

if( m.impassable( u.pos() + *p ) || m.obstructed_by_vehicle_rotation( u.pos(), u.pos() + *p ) ) {
Expand Down

0 comments on commit 06ac1c7

Please sign in to comment.