From 0a130e43935302e42568b2156a3e11dfad10e2c6 Mon Sep 17 00:00:00 2001 From: ZhilkinSerg Date: Tue, 25 May 2021 11:12:07 +0300 Subject: [PATCH] Fix wind update --- src/weather.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/weather.cpp b/src/weather.cpp index 3ae66dcd3f8bc..a4348ca4b75b6 100644 --- a/src/weather.cpp +++ b/src/weather.cpp @@ -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() );