Skip to content

Commit

Permalink
Skip unnecessary weather calculations for root cellar #41324
Browse files Browse the repository at this point in the history
  • Loading branch information
int-ua authored and kevingranade committed Jun 18, 2020
1 parent e184c6a commit 767d9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8510,7 +8510,7 @@ void item::process_temperature_rot( float insulation, const tripoint &pos,

//Use weather if above ground, use map temp if below
double env_temperature = 0;
if( pos.z >= 0 ) {
if( pos.z >= 0 && flag != TEMP_ROOT_CELLAR ) {
double weather_temperature = wgen.get_weather_temperature( pos, time, seed );
env_temperature = weather_temperature + enviroment_mod + local_mod;
} else {
Expand Down

0 comments on commit 767d9c2

Please sign in to comment.