summaryrefslogtreecommitdiff
path: root/train_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-28 07:33:51 +0000
committertron <tron@openttd.org>2006-08-28 07:33:51 +0000
commit3306d9829f18d5499e4af1295d45cd03aaffd973 (patch)
tree7bdfd7c5d958ecb70ce91a2e6f5a707140d4f90d /train_gui.c
parent4e36c4a349543bf6599559ee36ddfda15c584a6b (diff)
downloadopenttd-3306d9829f18d5499e4af1295d45cd03aaffd973.tar.xz
(svn r6184) Remove the unused (because it was NULL in all callers) second parameter of FillDrawPixelInfo() and simplify some expressions
Diffstat (limited to 'train_gui.c')
-rw-r--r--train_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c
index 90177ea62..55af10049 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -361,7 +361,7 @@ static void DrawTrainImage(const Vehicle *v, int x, int y, int count, int skip,
int highlight_l = 0;
int highlight_r = 0;
- if (!FillDrawPixelInfo(&tmp_dpi, NULL, x - 2, y - 1, count + 1, 14)) return;
+ if (!FillDrawPixelInfo(&tmp_dpi, x - 2, y - 1, count + 1, 14)) return;
count = (count * 8) / _traininfo_vehicle_width;