Skip to content

Commit

Permalink
fix: redundant comment
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 committed Sep 18, 2023
1 parent 631c81c commit 1d6bae6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/weather.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1124,10 +1124,12 @@ int weather_manager::get_temperature( const tripoint &location ) const
temp_mod += get_heat_radiation( location, false );
temp_mod += get_convection_temperature( location );
}
//underground temperature = average New England temperature = 43F/6C rounded to int
const int temp = ( location.z < 0 ? units::to_fahrenheit( temperatures::annual_average ) :
temperature ) +
( g->new_game ? 0 : g->m.get_temperature( location ) + temp_mod );
const int temp = ( location.z < 0
? units::to_fahrenheit( temperatures::annual_average )
: temperature ) +
( g->new_game
? 0
: g->m.get_temperature( location ) + temp_mod );

temperature_cache.emplace( std::make_pair( location, temp ) );
return temp;
Expand Down

0 comments on commit 1d6bae6

Please sign in to comment.