fix dwarfmonitor weather widget

develop
myk002 2022-11-14 15:23:30 -08:00
parent 52e850917e
commit e3498f275f
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 2 additions and 2 deletions

@ -27,8 +27,8 @@ function WeatherWidget:overlay_onupdate()
for i=0,4 do
for j=0,4 do
weather = cw[i][j]
if weather == df.weather_type.Rain then self.rain = true end
if weather == df.weather_type.Snow then self.snow = true end
if weather == df.weather_type.Rain then rain = true end
if weather == df.weather_type.Snow then snow = true end
end
end
self.frame.w = (rain and 4 or 0) + (snow and 4 or 0) +