changeset 19920:02bef4e7d565 draft

(svn r24854) -Fix (r24839): Only consider vehicles available in the climate for purchase/depot cell size.
author frosch <frosch@openttd.org>
date Wed, 26 Dec 2012 12:24:03 +0000
parents 2a12d5271d09
children eabd618abcc9
files src/depot_gui.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -169,6 +169,8 @@
 
 	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;