summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-12-29 23:44:39 +0000
committeryexo <yexo@openttd.org>2010-12-29 23:44:39 +0000
commit703ff560c19e2b21597e9ed25b3e394a2085702a (patch)
treec1d2b4b0197c9adfee798f7823534f91f4dddf2c /src/town_cmd.cpp
parent5b25e620dd747d35b024d6d244be9fc7002e38b0 (diff)
downloadopenttd-703ff560c19e2b21597e9ed25b3e394a2085702a.tar.xz
(svn r21664) -Add: [NoAI] AIEventTownFounded
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 9ab7eacda..32bb0df9f 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -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;