Skip to content

Commit

Permalink
Merge pull request CleverRaven#49025 from ZhilkinSerg/fix-wind
Browse files Browse the repository at this point in the history
Fix wind update
  • Loading branch information
Rivet-the-Zombie authored May 25, 2021
2 parents b6c4ce5 + 0a130e4 commit 39074ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/weather.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1048,11 +1048,11 @@ const weather_generator &weather_manager::get_cur_weather_gen() const

void weather_manager::update_weather()
{
w_point &w = *weather_precise;
winddirection = wind_direction_override ? *wind_direction_override : w.winddirection;
windspeed = windspeed_override ? *windspeed_override : w.windpower;
winddirection = wind_direction_override ? *wind_direction_override : winddirection;
windspeed = windspeed_override ? *windspeed_override : windspeed;
Character &player_character = get_player_character();
if( weather_id == WEATHER_NULL || calendar::turn >= nextweather ) {
w_point &w = *weather_precise;
const weather_generator &weather_gen = get_cur_weather_gen();
w = weather_gen.get_weather( player_character.global_square_location(), calendar::turn,
g->get_seed() );
Expand Down

0 comments on commit 39074ba

Please sign in to comment.