TBTR: Remove unnecessary variable
This commit is contained in:
@@ -403,8 +403,7 @@ public:
|
|||||||
this->ToggleWidgetLoweredState(TRW_WIDGET_TMPL_BUTTONS_CLONE);
|
this->ToggleWidgetLoweredState(TRW_WIDGET_TMPL_BUTTONS_CLONE);
|
||||||
|
|
||||||
if (this->IsWidgetLowered(TRW_WIDGET_TMPL_BUTTONS_CLONE)) {
|
if (this->IsWidgetLowered(TRW_WIDGET_TMPL_BUTTONS_CLONE)) {
|
||||||
static const CursorID clone_icon = SPR_CURSOR_CLONE_TRAIN;
|
SetObjectToPlaceWnd(SPR_CURSOR_CLONE_TRAIN, PAL_NONE, HT_VEHICLE, this);
|
||||||
SetObjectToPlaceWnd(clone_icon, PAL_NONE, HT_VEHICLE, this);
|
|
||||||
} else {
|
} else {
|
||||||
ResetObjectToPlace();
|
ResetObjectToPlace();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user