mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-02 11:29:10 +00:00
(svn r9439) -Codechange: check for valid default cargo type even if a vehicle is not refittable...
This commit is contained in:
@@ -4420,8 +4420,6 @@ static void CalculateRefitMasks()
|
|||||||
}
|
}
|
||||||
_engine_info[engine].refit_mask = ((mask & ~not_mask) ^ xor_mask) & _cargo_mask;
|
_engine_info[engine].refit_mask = ((mask & ~not_mask) ^ xor_mask) & _cargo_mask;
|
||||||
|
|
||||||
if (_engine_info[engine].refit_mask == 0) continue;
|
|
||||||
|
|
||||||
/* Check if this engine's cargo type is valid. If not, set to the first refittable
|
/* Check if this engine's cargo type is valid. If not, set to the first refittable
|
||||||
* cargo type. Apparently cargo_type isn't a common property... */
|
* cargo type. Apparently cargo_type isn't a common property... */
|
||||||
switch (GetEngine(engine)->type) {
|
switch (GetEngine(engine)->type) {
|
||||||
|
Reference in New Issue
Block a user