(svn r27628) -Codechange: Prepare for drawing cursors consisting of multiple sprites.

This commit is contained in:
frosch
2016-08-15 18:33:08 +00:00
parent 4d1843a95e
commit 3cb7d9703b
5 changed files with 74 additions and 50 deletions

View File

@@ -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;
}