1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Support for Tavern on adv map.

This commit is contained in:
Michał W. Urbańczyk
2010-07-08 23:03:27 +00:00
parent 24b47ce006
commit 1e30045541
18 changed files with 185 additions and 141 deletions

View File

@@ -171,8 +171,13 @@ bool SetFormation::applyGh( CGameHandler *gh )
bool HireHero::applyGh( CGameHandler *gh )
{
ERROR_IF_NOT_OWNS(tid);
return gh->hireHero(tid,hid);
const CGObjectInstance *obj = gh->getObj(tid);
if(obj->ID == TOWNI_TYPE)
ERROR_IF_NOT_OWNS(tid);
//TODO check for visiting hero
return gh->hireHero(obj, hid,player);
}
bool BuildBoat::applyGh( CGameHandler *gh )