From 1d6bae61d2e5318b8b9df453741b0833353d0c17 Mon Sep 17 00:00:00 2001 From: scarf Date: Mon, 18 Sep 2023 09:26:24 +0900 Subject: [PATCH] fix: redundant comment --- src/weather.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/weather.cpp b/src/weather.cpp index 4b967465bca6..01d596a68cd9 100644 --- a/src/weather.cpp +++ b/src/weather.cpp @@ -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;