(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:
rubidium
2008-05-17 23:11:06 +00:00
parent b101faea20
commit d284ba2283
13 changed files with 85 additions and 81 deletions

View File

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