mirror of https://github.com/OpenTTD/OpenTTD
(svn r12635) -Codechange: a bit of a code-style cleanup
parent
25e5e5b1a9
commit
caa3b659b0
|
@ -1342,8 +1342,7 @@ static void BuyCompanyWndProc(Window *w, WindowEvent *e)
|
||||||
SetDParam(0, p->index);
|
SetDParam(0, p->index);
|
||||||
SetDParam(1, p->bankrupt_value);
|
SetDParam(1, p->bankrupt_value);
|
||||||
DrawStringMultiCenter(214, 65, STR_705B_WE_ARE_LOOKING_FOR_A_TRANSPORT, 238);
|
DrawStringMultiCenter(214, 65, STR_705B_WE_ARE_LOOKING_FOR_A_TRANSPORT, 238);
|
||||||
break;
|
} break;
|
||||||
}
|
|
||||||
|
|
||||||
case WE_CLICK:
|
case WE_CLICK:
|
||||||
switch (e->we.click.widget) {
|
switch (e->we.click.widget) {
|
||||||
|
@ -1431,9 +1430,11 @@ static void EndGameWndProc(Window *w, WindowEvent *e)
|
||||||
DrawStringMultiCenter(x + (640 / 2), y + 157, STR_021B_ACHIEVES_STATUS, 640);
|
DrawStringMultiCenter(x + (640 / 2), y + 157, STR_021B_ACHIEVES_STATUS, 640);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case WE_CLICK: /* Close the window (and show the highscore window) */
|
case WE_CLICK: /* Close the window (and show the highscore window) */
|
||||||
DeleteWindow(w);
|
DeleteWindow(w);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WE_DESTROY: /* Show the highscore window when this one is closed */
|
case WE_DESTROY: /* Show the highscore window when this one is closed */
|
||||||
if (!_networking) DoCommandP(0, 0, 0, NULL, CMD_PAUSE); // unpause
|
if (!_networking) DoCommandP(0, 0, 0, NULL, CMD_PAUSE); // unpause
|
||||||
ShowHighscoreTable(w->window_number, WP(w, highscore_d).rank);
|
ShowHighscoreTable(w->window_number, WP(w, highscore_d).rank);
|
||||||
|
@ -1481,7 +1482,7 @@ static void HighScoreWndProc(Window *w, WindowEvent *e)
|
||||||
if (!_networking) DoCommandP(0, 0, 0, NULL, CMD_PAUSE); // unpause
|
if (!_networking) DoCommandP(0, 0, 0, NULL, CMD_PAUSE); // unpause
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Widget _highscore_widgets[] = {
|
static const Widget _highscore_widgets[] = {
|
||||||
{ WWT_PANEL, RESIZE_NONE, 16, 0, 640, 0, 480, 0x0, STR_NULL},
|
{ WWT_PANEL, RESIZE_NONE, 16, 0, 640, 0, 480, 0x0, STR_NULL},
|
||||||
|
|
Loading…
Reference in New Issue