mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
This commit is contained in:
@ -551,9 +551,10 @@ void VCAI::objectPropertyChanged(const SetObjectProperty * sop)
|
|||||||
void VCAI::buildChanged(const CGTownInstance * town, BuildingID buildingID, int what)
|
void VCAI::buildChanged(const CGTownInstance * town, BuildingID buildingID, int what)
|
||||||
{
|
{
|
||||||
LOG_TRACE_PARAMS(logAi, "what '%i'", what);
|
LOG_TRACE_PARAMS(logAi, "what '%i'", what);
|
||||||
|
NET_EVENT_HANDLER;
|
||||||
|
|
||||||
if(town->getOwner() == playerID && what == 1) //built
|
if(town->getOwner() == playerID && what == 1) //built
|
||||||
completeGoal(sptr(Goals::BuildThis(buildingID, town)));
|
completeGoal(sptr(Goals::BuildThis(buildingID, town)));
|
||||||
NET_EVENT_HANDLER;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void VCAI::heroBonusChanged(const CGHeroInstance * hero, const Bonus & bonus, bool gain)
|
void VCAI::heroBonusChanged(const CGHeroInstance * hero, const Bonus & bonus, bool gain)
|
||||||
@ -705,6 +706,7 @@ void VCAI::showGarrisonDialog(const CArmedInstance * up, const CGHeroInstance *
|
|||||||
|
|
||||||
void VCAI::showMapObjectSelectDialog(QueryID askID, const Component & icon, const MetaString & title, const MetaString & description, const std::vector<ObjectInstanceID> & objects)
|
void VCAI::showMapObjectSelectDialog(QueryID askID, const Component & icon, const MetaString & title, const MetaString & description, const std::vector<ObjectInstanceID> & objects)
|
||||||
{
|
{
|
||||||
|
NET_EVENT_HANDLER;
|
||||||
status.addQuery(askID, "Map object select query");
|
status.addQuery(askID, "Map object select query");
|
||||||
requestActionASAP([=](){ answerQuery(askID, 0); });
|
requestActionASAP([=](){ answerQuery(askID, 0); });
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user