diff options
author | smatz <smatz@openttd.org> | 2008-04-17 00:44:20 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-17 00:44:20 +0000 |
commit | 9488db56d4994cb653129e7d82973ae827537e05 (patch) | |
tree | 5f5827bd541cf5d637cd23faa64aea957404ca89 /src/ai/trolly/trolly.cpp | |
parent | 1367c9016149f3e750bf5cb2b0f7cbe0dbfaee1b (diff) | |
download | openttd-9488db56d4994cb653129e7d82973ae827537e05.tar.xz |
(svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile()
Diffstat (limited to 'src/ai/trolly/trolly.cpp')
-rw-r--r-- | src/ai/trolly/trolly.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/trolly/trolly.cpp b/src/ai/trolly/trolly.cpp index e047a5a29..8a419ca09 100644 --- a/src/ai/trolly/trolly.cpp +++ b/src/ai/trolly/trolly.cpp @@ -1254,7 +1254,7 @@ static void AiNew_CheckVehicle(Player *p, Vehicle *v) // We are already sending him back if (AiNew_GetSpecialVehicleFlag(p, v) & AI_VEHICLEFLAG_SELL) { - if (v->type == VEH_ROAD && IsTileDepotType(v->tile, TRANSPORT_ROAD) && + if (v->type == VEH_ROAD && IsDepotTypeTile(v->tile, TRANSPORT_ROAD) && (v->vehstatus&VS_STOPPED)) { // We are at the depot, sell the vehicle AI_DoCommand(0, v->index, 0, DC_EXEC, CMD_SELL_ROAD_VEH); |