mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-10 00:11:31 +00:00
(svn r25457) -Fix: Do not test EF_AUTO_REFIT for the mail apartment or rotor of aircraft.
This commit is contained in:
parent
abb5a13f1e
commit
bfbdbe688e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user