From 1da18956f3cda81e6193a56bf005c221c51bb091 Mon Sep 17 00:00:00 2001 From: RenechCDDA <84619419+RenechCDDA@users.noreply.github.com> Date: Thu, 4 May 2023 08:27:27 -0400 Subject: [PATCH 1/2] friendship ended with cpart dd is my new best friend --- src/veh_interact.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/veh_interact.cpp b/src/veh_interact.cpp index 714cf7ff5e4c2..ac619be2070e0 100644 --- a/src/veh_interact.cpp +++ b/src/veh_interact.cpp @@ -874,7 +874,7 @@ bool veh_interact::update_part_requirements() nmsg += res.second; ret_val can_mount = veh->can_mount( - veh->part( cpart ).mount, sel_vpart_info->get_id() ); + dd.rotate( 2 ), sel_vpart_info->get_id() ); if( !can_mount.success() ) { ok = false; nmsg += _( "Cannot install due to:\n> " ) + colorize( can_mount.str(), From feeff67d3284b6e646d7d8cd4ec3fd299998029f Mon Sep 17 00:00:00 2001 From: RenechCDDA <84619419+RenechCDDA@users.noreply.github.com> Date: Thu, 4 May 2023 09:02:31 -0400 Subject: [PATCH 2/2] simplify! --- src/veh_interact.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/veh_interact.cpp b/src/veh_interact.cpp index ac619be2070e0..3841c1e34b2b1 100644 --- a/src/veh_interact.cpp +++ b/src/veh_interact.cpp @@ -874,7 +874,7 @@ bool veh_interact::update_part_requirements() nmsg += res.second; ret_val can_mount = veh->can_mount( - dd.rotate( 2 ), sel_vpart_info->get_id() ); + -dd, sel_vpart_info->get_id() ); if( !can_mount.success() ) { ok = false; nmsg += _( "Cannot install due to:\n> " ) + colorize( can_mount.str(),