forked from mirror/OpenTTD
(svn r27628) -Codechange: Prepare for drawing cursors consisting of multiple sprites.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user