Skip to content

Commit

Permalink
Replace veh->is_open with vehicle_part::open (android) (#61042)
Browse files Browse the repository at this point in the history
  • Loading branch information
irwiss authored Sep 17, 2022
1 parent 55fe3ad commit 915da83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdltiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2808,12 +2808,12 @@ static void CheckMessages()
actions.insert( ACTION_CONTROL_VEHICLE );
}
const int openablepart = veh->part_with_feature( veh_part, "OPENABLE", true );
if( openablepart >= 0 && veh->is_open( openablepart ) && ( dx != 0 ||
if( openablepart >= 0 && veh->part( openablepart ).open && ( dx != 0 ||
dy != 0 ) ) { // an open door adjacent to us
actions.insert( ACTION_CLOSE );
}
const int curtainpart = veh->part_with_feature( veh_part, "CURTAIN", true );
if( curtainpart >= 0 && veh->is_open( curtainpart ) && ( dx != 0 || dy != 0 ) ) {
if( curtainpart >= 0 && veh->part( curtainpart ).open && ( dx != 0 || dy != 0 ) ) {
actions.insert( ACTION_CLOSE );
}
const int cargopart = veh->part_with_feature( veh_part, "CARGO", true );
Expand Down

0 comments on commit 915da83

Please sign in to comment.