diff options
author | yexo <yexo@openttd.org> | 2009-04-25 23:51:15 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-04-25 23:51:15 +0000 |
commit | 660f90d37b764ba3e94adc798ab7cb5d05337b7c (patch) | |
tree | 58ac4f0bd063162ec74b3f811b092b092fbdb0ca /src/ai/api/ai_event_types.cpp | |
parent | 486e5b4bfeb4916f0a285fb9749ba031fa16c278 (diff) | |
download | openttd-660f90d37b764ba3e94adc798ab7cb5d05337b7c.tar.xz |
(svn r16151) -Codechange: move some includes around to prevent including half the AI api in non-noai related code.
Diffstat (limited to 'src/ai/api/ai_event_types.cpp')
-rw-r--r-- | src/ai/api/ai_event_types.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |