1
0
Fork 0

(svn r20412) -Codechange: Replace an if by a switch in IndustryCargoesWindow::OnClick.

release/1.1
alberth 2010-08-08 11:02:57 +00:00
parent 3da3d131c6
commit e1e8e245a0
1 changed files with 25 additions and 22 deletions

View File

@ -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)