1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00
- removed some no longer needed code from map handler
- blocked "back" button on campaign map screen if some of scenarios are
already completed
This commit is contained in:
Ivan Savenko
2014-01-05 13:45:44 +00:00
parent 5e812492e0
commit 1f325bafb3
5 changed files with 14 additions and 29 deletions

View File

@@ -492,7 +492,6 @@ void HeroRecruited::applyCl( CClient *cl )
logNetwork->errorStream() << "Something wrong with hero recruited!";
}
CGI->mh->initHeroDef(h);
CGI->mh->printObject(h);
if(vstd::contains(cl->playerint,h->tempOwner))
@@ -506,7 +505,6 @@ void HeroRecruited::applyCl( CClient *cl )
void GiveHero::applyCl( CClient *cl )
{
CGHeroInstance *h = GS(cl)->getHero(id);
CGI->mh->initHeroDef(h);
CGI->mh->printObject(h);
cl->playerint[h->tempOwner]->heroCreated(h);
}