diff options
author | peter1138 <peter1138@openttd.org> | 2006-01-07 16:47:59 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-01-07 16:47:59 +0000 |
commit | e81c316134b1aba5dfab9cb4e6bc09ad3f49878e (patch) | |
tree | 420d4feed72d14cc6515ef88f8e37e66e0ca4423 /train_gui.c | |
parent | 18de531671575549252cd947d09c83179faf47f5 (diff) | |
download | openttd-e81c316134b1aba5dfab9cb4e6bc09ad3f49878e.tar.xz |
(svn r3388) - NewGRF: Allow train running cost class to differ from engine class. Also fix typo in r3384.
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c index 6c0620f98..95f86a47c 100644 --- a/train_gui.c +++ b/train_gui.c @@ -48,7 +48,7 @@ void DrawTrainEnginePurchaseInfo(int x, int y, EngineID engine_number) y += 10; /* Running cost */ - SetDParam(0, (rvi->running_cost_base * _price.running_rail[rvi->engclass] >> 8) << multihead); + SetDParam(0, (rvi->running_cost_base * _price.running_rail[rvi->running_cost_class] >> 8) << multihead); DrawString(x,y, STR_PURCHASE_INFO_RUNNINGCOST, 0); y += 10; |