(svn r21664) -Add: [NoAI] AIEventTownFounded

This commit is contained in:
yexo
2010-12-29 23:44:39 +00:00
parent 1bdea024a3
commit c5597c44c4
6 changed files with 59 additions and 0 deletions

View File

@@ -47,6 +47,7 @@
#include "depot_base.h"
#include "object_map.h"
#include "object_base.h"
#include "ai/ai.hpp"
#include "table/strings.h"
#include "table/town_land.h"
@@ -1605,6 +1606,7 @@ CommandCost CmdFoundTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
SetDParam(1, t->index);
AddNewsItem(STR_NEWS_NEW_TOWN, NS_INDUSTRY_OPEN, NR_TILE, tile, NR_NONE, UINT32_MAX, cn);
AI::BroadcastNewEvent(new AIEventTownFounded(t->index));
}
}
return cost;