From 660f90d37b764ba3e94adc798ab7cb5d05337b7c Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 25 Apr 2009 23:51:15 +0000 Subject: (svn r16151) -Codechange: move some includes around to prevent including half the AI api in non-noai related code. --- src/ai/api/ai_event_types.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ai/api/ai_event_types.cpp') diff --git a/src/ai/api/ai_event_types.cpp b/src/ai/api/ai_event_types.cpp index f02cfc957..bf6bfeb88 100644 --- a/src/ai/api/ai_event_types.cpp +++ b/src/ai/api/ai_event_types.cpp @@ -3,6 +3,7 @@ /** @file ai_event_types.cpp Implementation of all EventTypes. */ #include "ai_event_types.hpp" +#include "ai_vehicle.hpp" #include "../../command_type.h" #include "../../strings_func.h" #include "../../settings_type.h" @@ -69,7 +70,7 @@ Money AIEventEnginePreview::GetRunningCost() return ::GetEngine(engine)->GetRunningCost(); } -AIVehicle::VehicleType AIEventEnginePreview::GetVehicleType() +int32 AIEventEnginePreview::GetVehicleType() { switch (::GetEngine(engine)->type) { case VEH_ROAD: return AIVehicle::VT_ROAD; -- cgit v1.2.3-54-g00ecf