|
|
|
@ -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,9 +1052,10 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
|
|
|
|
|
SetWindowDirty(w);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static const Widget _performance_rating_detail_widgets[] = {
|
|
|
|
|