diff options
author | rubidium <rubidium@openttd.org> | 2007-10-19 22:46:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-10-19 22:46:55 +0000 |
commit | 95f2181a1dbd2ac1276bf3e044d6d9161b96ed50 (patch) | |
tree | 94325422edf35b6645a697ffa3bfd15ed090bf01 /src/ai/trolly/trolly.cpp | |
parent | 9371ac13078df51aa920ecaa99485b0b4081513a (diff) | |
download | openttd-95f2181a1dbd2ac1276bf3e044d6d9161b96ed50.tar.xz |
(svn r11303) -Fix: EnsureNoVehicle and EnsureNoVehicleOnGround were both used to check whether there was no vehicle on the ground, except that the former didn't take care of aircraft shadows. So now we only use EnsureNoVehicleOnGround.
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 c2e4f577e..2c30b682e 100644 --- a/src/ai/trolly/trolly.cpp +++ b/src/ai/trolly/trolly.cpp @@ -1111,7 +1111,7 @@ static void AiNew_State_BuildDepot(Player *p) } // There is a bus on the tile we want to build road on... idle till he is gone! (BAD PERSON! :p) - if (!EnsureNoVehicle(p->ainew.depot_tile + TileOffsByDiagDir(p->ainew.depot_direction))) + if (!EnsureNoVehicleOnGround(p->ainew.depot_tile + TileOffsByDiagDir(p->ainew.depot_direction))) return; res = AiNew_Build_Depot(p, p->ainew.depot_tile, p->ainew.depot_direction, DC_EXEC); |