Skip to content

Commit

Permalink
Controlled rotorcrafts shouldn't fall
Browse files Browse the repository at this point in the history
  • Loading branch information
Vollch committed Dec 14, 2023
1 parent c5362d0 commit 18d30b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,11 @@ void map::drop_vehicle( const tripoint &p )
return;
}

vp->vehicle().is_falling = true;
if( vp->vehicle().is_rotorcraft() ) {
vp->vehicle().set_flying( true );
} else {
vp->vehicle().is_falling = true;
}
}

void map::drop_fields( const tripoint &p )
Expand Down

0 comments on commit 18d30b5

Please sign in to comment.