Skip to content

Commit

Permalink
Merge pull request #42384 from anothersimulacrum/fridgetank
Browse files Browse the repository at this point in the history
Make fridge tanks work
  • Loading branch information
ZhilkinSerg authored Jul 23, 2020
2 parents a82b06f + 7ccfbaa commit 8718a82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vehicle_part.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
Expand Down

0 comments on commit 8718a82

Please sign in to comment.