1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-19 00:17:56 +02:00

* fixes for glitches in garrisons in non 800x600 resolutions

* fixed timed events
* in recruitment window upgraded creatures will be selected by default
* bumped version number
* spell points won't be negative
This commit is contained in:
Michał W. Urbańczyk
2009-07-17 21:53:28 +00:00
parent 01a222066b
commit d1d2823c58
9 changed files with 20 additions and 14 deletions

View File

@ -1913,9 +1913,13 @@ void Mapa::readEvents( unsigned char * bufor, int &i )
else
ne->humanAffected = true;
ne->computerAffected = bufor[i]; ++i;
ne->firstOccurence = bufor[i]; ++i;
ne->firstOccurence = readNormalNr(bufor,i, 2); i+=2;
ne->nextOccurence = bufor[i]; ++i;
i+=18;
char unknown[17];
memcpy(unknown, bufor+i, 17);
i+=17;
events.push_back(ne);
}
}