diff options
author | rubidium <rubidium@openttd.org> | 2008-05-17 23:11:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-17 23:11:06 +0000 |
commit | f5681547efc060ab0cc47c36316c4f2aa1217948 (patch) | |
tree | cdbaf12f7c5a7666ecc23983c51dca268e3b58e2 /src/depot_gui.cpp | |
parent | c1713c9ab7438386dbda32b4c33e95995882f702 (diff) | |
download | openttd-f5681547efc060ab0cc47c36316c4f2aa1217948.tar.xz |
(svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean.
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 14d90acd6..ef4947d34 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -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; } }; |