Skip to content

Commit

Permalink
Slipping when climbing down may happen only on unstable terrain below (
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Burmistrov authored May 3, 2020
1 parent 4e0786c commit 1e45902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4288,7 +4288,7 @@ void iexamine::ledge( player &p, const tripoint &examp )
p.moves -= to_moves<int>( 1_seconds + 1_seconds * fall_mod );
p.setpos( examp );

if( g->slip_down( true ) ) {
if( g->m.has_flag( "UNSTABLE", examp + tripoint_below ) && g->slip_down( true ) ) {
return;
}

Expand Down

0 comments on commit 1e45902

Please sign in to comment.