summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-12-18 12:10:46 +0000
committertron <tron@openttd.org>2005-12-18 12:10:46 +0000
commitb06b3e2ca2789867580a5227ec346cd69a84eb53 (patch)
treea0ac2ff6091f2ec7e9b8c392fc45fc93c8b6b85f /road_cmd.c
parent2956b119b26c78df4973cf077e288501baeaf649 (diff)
downloadopenttd-b06b3e2ca2789867580a5227ec346cd69a84eb53.tar.xz
(svn r3313) Remove GPMI related changes from trunk
Revisions in detail: 2542, 3226 (partial), 3229, 3231, 3232, 3238, 3242-3245, 3251, 3253, 3260, 3263, 3265, 3266, 3269, 3277, 3278, 3279, 3283 (partial), 3304, 3305, 3306
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 55efcda9e..d05a16601 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -17,7 +17,6 @@
#include "depot.h"
#include "pbs.h"
#include "debug.h"
-#include "ai/ai_event.h"
/* When true, GetTrackStatus for roads will treat roads under reconstruction
* as normal roads instead of impassable. This is used when detecting whether
@@ -487,8 +486,6 @@ do_clear:;
_m[tile].m5 |= pieces;
MarkTileDirtyByTile(tile);
-
- ai_event(_current_player, ttai_Event_BuildRoad, tile, pieces);
}
return cost;
}
@@ -674,8 +671,6 @@ int32 CmdBuildRoadDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2)
(p1 | 0x20) /* map5 */
);
- ai_event(_current_player, ttai_Event_BuildDepot, dep->index, tile);
- ai_event(_current_player, ttai_Event_BuildRoadDepot, dep->index, tile);
}
return cost + _price.build_road_depot;
}
@@ -1160,10 +1155,6 @@ static uint32 VehicleEnter_Road(Vehicle *v, TileIndex tile, int x, int y)
if (v->type == VEH_Road && v->u.road.frame == 11) {
if (_roadveh_enter_depot_unk0[GB(_m[tile].m5, 0, 2)] == v->u.road.state) {
RoadVehEnterDepot(v);
-
- ai_event(v->owner, ttai_Event_VehicleEnterDepot, v->index, tile);
- ai_event(v->owner, ttai_Event_RoadVehicleEnterDepot, v->index, tile);
-
return 4;
}
}