Skip to content

Commit

Permalink
Merge pull request #4502 from out-of-phaze/fix/wind
Browse files Browse the repository at this point in the history
Fix wind direction being wrong sometimes
  • Loading branch information
MistakeNot4892 authored Oct 4, 2024
2 parents 109bb3e + 89bf91f commit ab25558
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/modules/weather/weather_wind.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
mob_shown_wind.Cut()
if(prob(10))
var/old_strength = wind_strength
wind_strength = clamp(wind_strength + rand(-1, 1), 5, -5)
wind_strength = clamp(wind_strength + rand(-1, 1), -1, 5)
if(wind_strength < 0)
wind_strength = abs(wind_strength)
wind_direction = turn(wind_direction, 180)
if(old_strength != wind_strength)
mob_shown_wind.Cut()

Expand Down

0 comments on commit ab25558

Please sign in to comment.