diff options
author | frosch <frosch@openttd.org> | 2012-12-26 12:24:03 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-12-26 12:24:03 +0000 |
commit | 1e30884201debc1b6dc1af0859e5b99c39592df2 (patch) | |
tree | f878ab2d790fc87fd4bce05b112b3c57d55a7b37 /src | |
parent | 1ef4f7712dec1142a4ff35f8a59f649a5643156c (diff) | |
download | openttd-1e30884201debc1b6dc1af0859e5b99c39592df2.tar.xz |
(svn r24854) -Fix (r24839): Only consider vehicles available in the climate for purchase/depot cell size.
Diffstat (limited to 'src')
-rw-r--r-- | src/depot_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 731e66b4b..4c1ccca10 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -169,6 +169,8 @@ static void InitBlocksizeForVehicles(VehicleType type, EngineImageType image_typ const Engine *e; FOR_ALL_ENGINES_OF_TYPE(e, type) { + if (!e->IsEnabled()) continue; + EngineID eid = e->index; uint x, y; int x_offs, y_offs; |