(svn r24291) -Add: [Script] ScriptEventRoadReconstruction.

This commit is contained in:
frosch
2012-05-26 14:16:45 +00:00
parent 8dc553a039
commit 95d3d6fdef
12 changed files with 68 additions and 0 deletions

View File

@@ -2701,6 +2701,8 @@ static CommandCost TownActionRoadRebuild(Town *t, DoCommandFlag flags)
SetDParamStr(1, cn);
AddNewsItem(STR_NEWS_ROAD_REBUILDING, NT_GENERAL, NF_NORMAL, NR_TOWN, t->index, NR_NONE, UINT32_MAX, cn);
AI::BroadcastNewEvent(new ScriptEventRoadReconstruction((ScriptCompany::CompanyID)(Owner)_current_company, t->index));
Game::NewEvent(new ScriptEventRoadReconstruction((ScriptCompany::CompanyID)(Owner)_current_company, t->index));
}
return CommandCost();
}