From a66f383d1b4bb5d7b5909d91d1112b0671848df4 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 28 Nov 2009 16:10:22 +0000 Subject: [PATCH] (svn r18326) -Fix (r18325): Missing signedness conversion. --- src/order_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/order_gui.cpp b/src/order_gui.cpp index cf5cb4ff82..328cb18b65 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -195,7 +195,7 @@ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int SpriteID sprite = rtl ? SPR_ARROW_LEFT : SPR_ARROW_RIGHT; Dimension sprite_size = GetSpriteSize(sprite); if (v->cur_order_index == order_index) { - DrawSprite(sprite, PAL_NONE, rtl ? right - sprite_size.width : left, y + (FONT_HEIGHT_NORMAL - sprite_size.height) / 2); + DrawSprite(sprite, PAL_NONE, rtl ? right - sprite_size.width : left, y + ((int)FONT_HEIGHT_NORMAL - (int)sprite_size.height) / 2); } SetDParam(0, order_index + 1);