mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r7485) -Codechange: [NewGRF] Add debug warning for unsupported running cost bases for rail vehicles.
This commit is contained in:
parent
38b9124a17
commit
686225bc5b
4
newgrf.c
4
newgrf.c
@ -316,6 +316,10 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
|
|||||||
case 0x4C30: rvi[i].running_cost_class = 0; break;
|
case 0x4C30: rvi[i].running_cost_class = 0; break;
|
||||||
case 0x4C36: rvi[i].running_cost_class = 1; break;
|
case 0x4C36: rvi[i].running_cost_class = 1; break;
|
||||||
case 0x4C3C: rvi[i].running_cost_class = 2; break;
|
case 0x4C3C: rvi[i].running_cost_class = 2; break;
|
||||||
|
case 0: break; /* Used by wagons */
|
||||||
|
default:
|
||||||
|
grfmsg(GMS_WARN, "RailVehicleChangeInfo: Unsupported running cost base 0x%04X, ignoring.", base);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user