Changeset - r20442:8248e00cb34d
[Not reviewed]
master
0 1 0
frosch - 11 years ago 2013-06-24 20:58:25
frosch@openttd.org
(svn r25457) -Fix: Do not test EF_AUTO_REFIT for the mail apartment or rotor of aircraft.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/order_gui.cpp
Show inline comments
 
@@ -795,7 +795,7 @@ private:
 
	void UpdateAutoRefitState()
 
	{
 
		this->can_do_autorefit = false;
 
		for (const Vehicle *w = this->vehicle; w != NULL; w = w->Next()) {
 
		for (const Vehicle *w = this->vehicle; w != NULL; w = w->IsGroundVehicle() ? w->Next() : NULL) {
 
			if (HasBit(Engine::Get(w->engine_type)->info.misc_flags, EF_AUTO_REFIT)) this->can_do_autorefit = true;
 
		}
 
	}
0 comments (0 inline, 0 general)