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

New, experimental crashhandler for windows (creates minidumps).

Several minor fixes and improvements.
This commit is contained in:
Michał W. Urbańczyk
2009-07-31 20:10:22 +00:00
parent 586957b749
commit 78afb07f52
11 changed files with 169 additions and 32 deletions

View File

@ -909,13 +909,17 @@ void Mapa::loadHero( CGObjectInstance * &nobj, unsigned char * bufor, int &i )
nhi->name = readString(bufor,i);
if(version>AB)
{
if(readChar(bufor,i))//true if hore's experience is greater than 0
if(readChar(bufor,i))//true if hero's experience is greater than 0
{ nhi->exp = readNormalNr(bufor,i); i+=4; }
else
nhi->exp = 0xffffffff;
}
else
{ nhi->exp = readNormalNr(bufor,i); i+=4; }
{
nhi->exp = readNormalNr(bufor,i); i+=4;
if(!nhi->exp) //0 means "not set" in <=AB maps
nhi->exp = 0xffffffff;
}
bool portrait=bufor[i]; ++i;
if (portrait)