Skip to content

Commit

Permalink
Fix small weather system bug #741
Browse files Browse the repository at this point in the history
  • Loading branch information
tarwyn authored and VladimirMangos committed Sep 7, 2015
1 parent 0d4ce1b commit 5ef2f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Weather.cpp
Expand Up @@ -151,7 +151,7 @@ bool Weather::ReGenerate()
uint32 chance2 = chance1 + m_weatherChances->data[season].snowChance;
uint32 chance3 = chance2 + m_weatherChances->data[season].stormChance;

uint32 rnd = urand(0, 99);
uint32 rnd = urand(1, 100);
if (rnd <= chance1)
m_type = WEATHER_TYPE_RAIN;
else if (rnd <= chance2)
Expand Down

3 comments on commit 5ef2f17

@evil-at-wow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VladimirMangos A gentle reminder: the issues are in a separate repository these days, so you need to write cmangos/issues#741 to have a working link.

No big deal, I forgot this a few times too in previous commits, so this serves as a reminder for myself too 😄

@VladimirMangos
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@cyberium
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To all concerned @cmangos/developer please take a look at http://cmangos.net/thread-7206.html

Please sign in to comment.