mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r18326) -Fix (r18325): Missing signedness conversion.
This commit is contained in:
parent
74c43d6b3c
commit
318ce40496
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user