Skip to content

Commit

Permalink
update call sites too
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Jun 6, 2024
1 parent 3e92e28 commit 209d650
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12833,7 +12833,8 @@ bool item::process_temperature_rot( float insulation, const tripoint &pos, map &
}
last_temp_check = time;

if( decays_in_air && process_decay_in_air( carrier, max_air_exposure_hours, time_delta ) ) {
if( decays_in_air &&
process_decay_in_air( here, carrier, pos, max_air_exposure_hours, time_delta ) ) {
return false;
}

Expand All @@ -12855,7 +12856,8 @@ bool item::process_temperature_rot( float insulation, const tripoint &pos, map &
calc_temp( temp, insulation, now - time );
last_temp_check = now;

if( decays_in_air && process_decay_in_air( carrier, max_air_exposure_hours, now - time ) ) {
if( decays_in_air &&
process_decay_in_air( here, carrier, pos, max_air_exposure_hours, now - time ) ) {
return false;
}

Expand Down

0 comments on commit 209d650

Please sign in to comment.