mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r3607) - Fix indenting of PerformanceRatingDetailWndProc()
This commit is contained in:
parent
9936e39924
commit
1f177c6306
16
graph_gui.c
16
graph_gui.c
|
@ -938,8 +938,9 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
|
|||
if (i == SCORE_TOTAL) {
|
||||
needed = total_score;
|
||||
score = SCORE_MAX;
|
||||
} else
|
||||
} else {
|
||||
total_score += score;
|
||||
}
|
||||
|
||||
DrawString(7, y, STR_PERFORMANCE_DETAIL_VEHICLES + i, 0);
|
||||
|
||||
|
@ -1009,8 +1010,7 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
|
|||
}
|
||||
break;
|
||||
|
||||
case WE_CREATE:
|
||||
{
|
||||
case WE_CREATE: {
|
||||
int i;
|
||||
Player *p2;
|
||||
w->hidden_state = 0;
|
||||
|
@ -1034,10 +1034,11 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
|
|||
w->click_state = 1 << 13;
|
||||
|
||||
SetWindowDirty(w);
|
||||
}
|
||||
|
||||
break;
|
||||
case WE_TICK:
|
||||
{
|
||||
}
|
||||
|
||||
case WE_TICK: {
|
||||
// Update the player score every 5 days
|
||||
if (--w->custom[0] == 0) {
|
||||
w->custom[0] = DAY_TICKS;
|
||||
|
@ -1051,10 +1052,11 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
|
|||
SetWindowDirty(w);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static const Widget _performance_rating_detail_widgets[] = {
|
||||
{ WWT_CLOSEBOX, RESIZE_NONE, 14, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
|
||||
|
|
Loading…
Reference in New Issue