diff options
author | peter1138 <peter1138@openttd.org> | 2006-12-12 12:00:50 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-12-12 12:00:50 +0000 |
commit | c95ed1959a94d25d7185f6ff41a9c573ec4d5c07 (patch) | |
tree | 7d5fc876e402288aaa561e6d4d642fac86d54afc | |
parent | d5cde8e1f37f2d58700bed91893d2f3d64bfcb46 (diff) | |
download | openttd-c95ed1959a94d25d7185f6ff41a9c573ec4d5c07.tar.xz |
(svn r7485) -Codechange: [NewGRF] Add debug warning for unsupported running cost bases for rail vehicles.
-rw-r--r-- | newgrf.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 0x4C36: rvi[i].running_cost_class = 1; 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; |