src/vehicle.cpp
branchnoai
changeset 10370 fa4f88090694
parent 10355 ee4b5f7a5bf2
child 10455 22c441f5adf9
--- a/src/vehicle.cpp	Fri Apr 25 16:05:12 2008 +0000
+++ b/src/vehicle.cpp	Sun Apr 27 15:05:17 2008 +0000
@@ -50,6 +50,7 @@
 #include "depot_map.h"
 #include "animated_tile_func.h"
 #include "effectvehicle_base.h"
+#include "ai/ai.h"
 
 #include "table/sprites.h"
 #include "table/strings.h"
@@ -1684,6 +1685,7 @@
 				SetDParam(0, v->unitnumber);
 				AddNewsItem(string, NM_SMALL, NF_VIEWPORT | NF_VEHICLE, NT_ADVICE, DNC_NONE, v->index, 0);
 			}
+			AI_Event(v->owner, new AIEventVehicleWaitingInDepot(v->index));
 		}
 	}
 }