summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-12-02 19:21:38 +0000
committertruelight <truelight@openttd.org>2005-12-02 19:21:38 +0000
commit214ed794a1ae2099147383cba86febabd81d3868 (patch)
treed8166d84c5a472b91de66aad640fc155fd694946 /road_cmd.c
parent7460ecd42a56c96277e7566cbe3750d890b2dded (diff)
downloadopenttd-214ed794a1ae2099147383cba86febabd81d3868.tar.xz
(svn r3253) -Add: add BuildRoad event for AIs
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 4592bd7a0..7a0baae69 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -487,6 +487,8 @@ do_clear:;
_m[tile].m5 |= pieces;
MarkTileDirtyByTile(tile);
+
+ ai_event(_current_player, ottd_Event_BuildRoad, tile, pieces);
}
return cost;
}