1
0
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:
Michał W. Urbańczyk
2009-05-17 22:52:22 +00:00
parent 7862fe25d1
commit 7fbd4e696c
2 changed files with 10 additions and 3 deletions

View File

@ -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;