(svn r27630) -Codechange: Deduplicate code to attach vehicle to cursor.

This commit is contained in:
frosch
2016-08-15 18:33:52 +00:00
parent 0214caaac2
commit caa9bffb56
4 changed files with 23 additions and 9 deletions

View File

@@ -627,8 +627,8 @@ public:
this->vehicle_sel = v->index;
int image = v->GetImage(_current_text_dir == TD_RTL ? DIR_E : DIR_W, EIT_IN_LIST);
SetObjectToPlaceWnd(image, GetVehiclePalette(v), HT_DRAG, this);
SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this);
SetMouseCursorVehicle(v, EIT_IN_LIST);
_cursor.vehchain = true;
this->SetDirty();