diff --git a/common/src/weather.rs b/common/src/weather.rs index 303f9ab05f..8d2e78cd22 100644 --- a/common/src/weather.rs +++ b/common/src/weather.rs @@ -100,8 +100,8 @@ impl CompressedWeather { impl From for CompressedWeather { fn from(weather: Weather) -> Self { Self { - cloud: (weather.cloud * 255.0) as u8, - rain: (weather.rain * 255.0) as u8, + cloud: (weather.cloud * 255.0).round() as u8, + rain: (weather.rain * 255.0).round() as u8, } } }