(svn r3607) - Fix indenting of PerformanceRatingDetailWndProc()

pull/155/head
peter1138 19 years ago
parent d8be42dbf6
commit e5d95d96b1

@ -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…
Cancel
Save