summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2016-08-15 18:33:08 +0000
committerfrosch <frosch@openttd.org>2016-08-15 18:33:08 +0000
commit3cb7d9703b376b8798e5726591add2d4e2a17223 (patch)
tree745e4ef13842d3ac7044ac6b62a15e1761232e84 /src/depot_gui.cpp
parent4d1843a95e26a64ff3ff0b967d721794dbf0fe46 (diff)
downloadopenttd-3cb7d9703b376b8798e5726591add2d4e2a17223.tar.xz
(svn r27628) -Codechange: Prepare for drawing cursors consisting of multiple sprites.
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 24a14b833..76bb8df50 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -512,8 +512,9 @@ struct DepotWindow : Window {
this->sel = v->index;
this->SetDirty();
- _cursor.short_vehicle_offset = v->IsGroundVehicle() ? (16 - v->GetGroundVehicleCache()->cached_veh_length * 2) * (rtl ? -1 : 1) : 0;
+ _cursor.sprite_pos[0].x = v->IsGroundVehicle() ? (16 - v->GetGroundVehicleCache()->cached_veh_length * 2) * (rtl ? -1 : 1) : 0;
_cursor.vehchain = _ctrl_pressed;
+ UpdateCursorSize();
}
break;
}