diff options
author | rubidium <rubidium@openttd.org> | 2010-06-23 14:38:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-06-23 14:38:17 +0000 |
commit | 52154e097c4f6e0e9d03bad83b933b05b6082d16 (patch) | |
tree | 6c439a38376bb38a31b76cd8532f966fbe519f54 /src/train_gui.cpp | |
parent | 9683b8746674af9963fb13f00e020edf1dba91f4 (diff) | |
download | openttd-52154e097c4f6e0e9d03bad83b933b05b6082d16.tar.xz |
(svn r20013) -Fix [FS#3890]: silence some warnings / take the advice of the warnings into account
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r-- | src/train_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index 30f079206..35bd1d266 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -55,7 +55,7 @@ void CcBuildWagon(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p * @param selection Selected vehicle that is dragged. * @return The width of the highlight mark. */ -static uint HighlightDragPosition(int px, int max_width, VehicleID selection) +static int HighlightDragPosition(int px, int max_width, VehicleID selection) { bool rtl = _dynlang.text_dir == TD_RTL; @@ -108,7 +108,7 @@ void DrawTrainImage(const Train *v, int left, int right, int y, VehicleID select for (; v != NULL && (rtl ? px > 0 : px < max_width); v = v->Next()) { if (dragging && !drag_at_end_of_train && drag_dest == v->index) { /* Highlight the drag-and-drop destination inside the train. */ - uint drag_hlight_width = HighlightDragPosition(px, max_width, selection); + int drag_hlight_width = HighlightDragPosition(px, max_width, selection); px += rtl ? -drag_hlight_width : drag_hlight_width; } |