From ef4912ae948c37ad44961c7f6bab3309effa0591 Mon Sep 17 00:00:00 2001 From: Alexey Kim Date: Fri, 16 Sep 2022 14:41:55 +0300 Subject: [PATCH] Replace veh->is_open with vehicle_part::open (android) --- src/sdltiles.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );