From 7ccfbaa9e146247dd6adf081c871a3eee3f32f36 Mon Sep 17 00:00:00 2001 From: anothersimulacrum <42699974+anothersimulacrum@users.noreply.github.com> Date: Wed, 22 Jul 2020 10:37:57 -0700 Subject: [PATCH] Make fridge tanks work Previously, the processing for tanks ignored the fridge/freezer tags. Make it aware of those. --- src/vehicle_part.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vehicle_part.cpp b/src/vehicle_part.cpp index ba14b1db9f965..a5dca53838a6b 100644 --- a/src/vehicle_part.cpp +++ b/src/vehicle_part.cpp @@ -388,6 +388,11 @@ void vehicle_part::process_contents( const tripoint &pos, const bool e_heater ) if( e_heater ) { flag = temperature_flag::HEATER; } + if( enabled && info().has_flag( VPFLAG_FRIDGE ) ) { + flag = temperature_flag::FRIDGE; + } else if( enabled && info().has_flag( VPFLAG_FREEZER ) ) { + flag = temperature_flag::FREEZER; + } base.process( nullptr, pos, 1, flag ); } }