mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
* Fixed crashbug on iterating stack effects
* Altered probabilities of starting with 1/2/3 stacks (according to Zamolxis tests) * fix compilation min/max (windef.h is somehow included and it has its own macros min/max)
This commit is contained in:
@ -525,9 +525,9 @@ void CGHeroInstance::initHero()
|
||||
|
||||
int x = 0; //how many stacks will hero receives <1 - 3>
|
||||
pom = ran()%100;
|
||||
if(pom < 5)
|
||||
if(pom < 9)
|
||||
x = 1;
|
||||
else if(pom < 67)
|
||||
else if(pom < 79)
|
||||
x = 2;
|
||||
else
|
||||
x = 3;
|
||||
|
Reference in New Issue
Block a user