(svn r20412) -Codechange: Replace an if by a switch in IndustryCargoesWindow::OnClick.
This commit is contained in:
@@ -2346,8 +2346,8 @@ struct IndustryCargoesWindow : public Window {
|
||||
|
||||
virtual void OnClick(Point pt, int widget, int click_count)
|
||||
{
|
||||
if (widget != ICW_PANEL) return;
|
||||
|
||||
switch (widget) {
|
||||
case ICW_PANEL: {
|
||||
Point fieldxy, xy;
|
||||
if (!CalculatePositionInWidget(pt, &fieldxy, &xy)) return;
|
||||
|
||||
@@ -2374,6 +2374,9 @@ struct IndustryCargoesWindow : public Window {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
virtual void OnHover(Point pt, int widget)
|
||||
|
Reference in New Issue
Block a user