mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
* reading 8. byte of player description from map header
* disabled loading creatures battle animations * fixed memory leaks (a few of many) * creating default start options * minor bugfix in main menu (slider wasn't removed) * added txt file with portrait list * reading heroes portraits
This commit is contained in:
8
map.cpp
8
map.cpp
@ -65,14 +65,14 @@ CMapHeader::CMapHeader(unsigned char *map)
|
||||
if (this->players[pom].hasMainTown)
|
||||
{
|
||||
this->players[pom].generateHeroAtMainTown = map[i++];
|
||||
i++; //unknown byte
|
||||
this->players[pom].generateHero = map[i++];
|
||||
this->players[pom].posOfMainTown.x = map[i++];
|
||||
this->players[pom].posOfMainTown.y = map[i++];
|
||||
this->players[pom].posOfMainTown.z = map[i++];
|
||||
}
|
||||
i++; //unknown byte
|
||||
int unknown = map[i++];
|
||||
if (unknown == 255)
|
||||
int customPortrait = map[i++];
|
||||
if (customPortrait == 255)
|
||||
{
|
||||
this->players[pom].mainHeroPortrait = 255;
|
||||
i+=5;
|
||||
@ -83,7 +83,7 @@ CMapHeader::CMapHeader(unsigned char *map)
|
||||
i+=3;
|
||||
for (int pp=0;pp<nameLength;pp++)
|
||||
this->players[pom].mainHeroName+=map[i++];
|
||||
i++; ////unknown byte
|
||||
i++; ////heroes placeholders //domostwa
|
||||
int heroCount = map[i++];
|
||||
i+=3;
|
||||
for (int pp=0;pp<heroCount;pp++)
|
||||
|
Reference in New Issue
Block a user