From 0e4a490a924540fefc9d678b349828fbaff6ed9a Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 21 Feb 2009 11:50:17 +0000 Subject: (svn r15539) -Fix: If an aircraft cannot carry any available cargo, it should not be available either instead of falling back to passenger/mail. Just like the other vehicle types also do. --- src/newgrf.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 8d4065995..dc507ecda 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -5746,7 +5746,10 @@ static void CalculateRefitMasks() * cargo type. Apparently cargo_type isn't a common property... */ switch (e->type) { default: NOT_REACHED(); - case VEH_AIRCRAFT: break; + case VEH_AIRCRAFT: + if (FindFirstRefittableCargo(engine) == CT_INVALID) ei->climates = 0x80; + break; + case VEH_TRAIN: { RailVehicleInfo *rvi = &e->u.rail; if (rvi->cargo_type == CT_INVALID) rvi->cargo_type = FindFirstRefittableCargo(engine); -- cgit v1.2.3-70-g09d2