mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
- implemented Hill Fort (minor issue - you can do ANY upgrades, including archers to sharpshooters without Gelu and so on)
- fixed some g++ errors in macroses - minor tweaks
This commit is contained in:
@@ -745,6 +745,14 @@ void OpenWindow::applyCl(CClient *cl)
|
||||
INTERFACE_CALL_IF_PRESENT(cl->getTile(obj->visitablePos())->visitableObjects.back()->tempOwner, showMarketWindow, market, hero);
|
||||
}
|
||||
break;
|
||||
case HILL_FORT_WINDOW:
|
||||
{
|
||||
//displays Hill fort window
|
||||
const CGObjectInstance *obj = cl->getObj(id1);
|
||||
const CGHeroInstance *hero = cl->getHero(id2);
|
||||
INTERFACE_CALL_IF_PRESENT(cl->getTile(obj->visitablePos())->visitableObjects.back()->tempOwner, showHillFortWindow, obj, hero);
|
||||
}
|
||||
break;
|
||||
case PUZZLE_MAP:
|
||||
{
|
||||
INTERFACE_CALL_IF_PRESENT(id1, showPuzzleMap);
|
||||
|
||||
Reference in New Issue
Block a user