mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 09:09:09 +00:00
(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style
This commit is contained in:
@@ -279,7 +279,7 @@ static void GraphLegendWndProc(Window *w, WindowEvent *e)
|
||||
}
|
||||
|
||||
case WE_CLICK:
|
||||
if (!IS_INT_INSIDE(e->we.click.widget, 3, 11)) return;
|
||||
if (!IsInsideMM(e->we.click.widget, 3, 11)) return;
|
||||
|
||||
ToggleBit(_legend_excluded_players, e->we.click.widget - 3);
|
||||
ToggleWidgetLoweredState(w, e->we.click.widget);
|
||||
@@ -1050,7 +1050,7 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
|
||||
|
||||
case WE_CLICK:
|
||||
/* Check which button is clicked */
|
||||
if (IS_INT_INSIDE(e->we.click.widget, 13, 21)) {
|
||||
if (IsInsideMM(e->we.click.widget, 13, 21)) {
|
||||
/* Is it no on disable? */
|
||||
if (!IsWindowWidgetDisabled(w, e->we.click.widget)) {
|
||||
RaiseWindowWidget(w, _performance_rating_detail_player + 13);
|
||||
|
Reference in New Issue
Block a user