diff --git a/src/sdltiles.cpp b/src/sdltiles.cpp index e55fd85679417..c950758d8fd76 100644 --- a/src/sdltiles.cpp +++ b/src/sdltiles.cpp @@ -2807,12 +2807,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 );