summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-11-28 16:10:22 +0000
committerfrosch <frosch@openttd.org>2009-11-28 16:10:22 +0000
commita66f383d1b4bb5d7b5909d91d1112b0671848df4 (patch)
treea3abe688577aa7242eeb18bbdd86bd3440d536d4 /src
parent49aca1edc096b70bdfa57534fd867abe717c2bb9 (diff)
downloadopenttd-a66f383d1b4bb5d7b5909d91d1112b0671848df4.tar.xz
(svn r18326) -Fix (r18325): Missing signedness conversion.
Diffstat (limited to 'src')
-rw-r--r--src/order_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index cf5cb4ff8..328cb18b6 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);