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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user