1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

* resolving #35

* small changes
This commit is contained in:
mateuszb 2007-10-11 20:13:13 +00:00
parent e32eaac8af
commit f3b712e6ea
3 changed files with 5 additions and 2 deletions

View File

@ -717,7 +717,7 @@ void CTerrainRect::show()
tilesw,tilesh,LOCPLINT->adventureInt->position.z,LOCPLINT->adventureInt->anim);
SDL_BlitSurface(teren,&genRect(pos.h,pos.w,0,0),ekran,&genRect(547,594,7,6));
SDL_FreeSurface(teren);
if (currentPath) //drawing path
if (currentPath && LOCPLINT->adventureInt->position.z==currentPath->startPos().z) //drawing path
{
for (int i=0;i<currentPath->nodes.size()-1;i++)
{

View File

@ -51,7 +51,7 @@ bool CCallback::moveHero(int ID, CPath * path, int idtype, int pathType)
else
hero=gs->players[player].heroes[ID];
}
else if (idtype==1 && player>=0) //szukamy lokalnie
else if (idtype==1 && player>=0) //looking for it in local area
{
for (int i=0; i<gs->players[player].heroes.size();i++)
{

View File

@ -1519,6 +1519,9 @@ void CAmbarCendamo::deh3m()
nt->pos = int3(spec->x, spec->y, spec->z);
nt->possibleSpells = spec->possibleSpells;
nt->obligatorySpells = spec->obligatorySpells;
nt->availableSpells = std::vector<CSpell*>();
nt->creatureIncome = std::vector<int>();
nt->creaturesLeft = std::vector<int>();
CGI->townh->townInstances.push_back(nt);
break;
}