(svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean.
This commit is contained in:
@@ -961,14 +961,14 @@ struct DepotWindow : Window {
|
||||
ResizeDepotButtons(this);
|
||||
}
|
||||
|
||||
virtual bool OnCTRLStateChange()
|
||||
virtual EventState OnCTRLStateChange()
|
||||
{
|
||||
if (this->sel != INVALID_VEHICLE) {
|
||||
_cursor.vehchain = _ctrl_pressed;
|
||||
this->InvalidateWidget(DEPOT_WIDGET_MATRIX);
|
||||
}
|
||||
|
||||
return true;
|
||||
return ES_HANDLED;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user