Mercurial > hg > openttd
changeset 5324:2276956b5aae draft
(svn r7485) -Codechange: [NewGRF] Add debug warning for unsupported running cost bases for rail vehicles.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Tue, 12 Dec 2006 12:00:50 +0000 |
parents | bbcb357cabd5 |
children | 7cfcf1b7d8c6 |
files | newgrf.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/newgrf.c +++ b/newgrf.c @@ -316,6 +316,10 @@ 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;