mirror of
https://github.com/vcmi/vcmi.git
synced 2026-06-19 22:57:37 +02:00
* fixed move hero button
* creatures placeholders work properly * abandoned mine won't show message with mithril * it's possible to build glyph of fear in fortress * emissaries won't be used in random creature drawing (they have no correct def) * fixed problem with moving two-hex creatures one tile back
This commit is contained in:
+12
-1
@@ -1131,7 +1131,18 @@ void CGameState::init(StartInfo * si, Mapa * map, int Seed)
|
||||
vti->spells[s->level-1].push_back(s->id);
|
||||
vti->possibleSpells -= s->id;
|
||||
}
|
||||
|
||||
|
||||
//init garrisons
|
||||
for (std::map<si32,std::pair<ui32,si32> >::iterator j=vti->army.slots.begin(); j!=vti->army.slots.end();j++)
|
||||
{
|
||||
if(j->second.first > 196 && j->second.first < 211)
|
||||
{
|
||||
if(j->second.first%2)
|
||||
j->second.first = vti->town->basicCreatures[ (j->second.first-197) / 2 ];
|
||||
else
|
||||
j->second.first = vti->town->upgradedCreatures[ (j->second.first-197) / 2 ];
|
||||
}
|
||||
}
|
||||
players[vti->getOwner()].towns.push_back(vti);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user