1
0
Fork 0

(svn r12635) -Codechange: a bit of a code-style cleanup

release/0.7
belugas 2008-04-09 02:16:04 +00:00
parent 25e5e5b1a9
commit caa3b659b0
1 changed files with 129 additions and 128 deletions

View File

@ -1342,8 +1342,7 @@ static void BuyCompanyWndProc(Window *w, WindowEvent *e)
SetDParam(0, p->index);
SetDParam(1, p->bankrupt_value);
DrawStringMultiCenter(214, 65, STR_705B_WE_ARE_LOOKING_FOR_A_TRANSPORT, 238);
break;
}
} break;
case WE_CLICK:
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);
}
} break;
case WE_CLICK: /* Close the window (and show the highscore window) */
DeleteWindow(w);
break;
case WE_DESTROY: /* Show the highscore window when this one is closed */
if (!_networking) DoCommandP(0, 0, 0, NULL, CMD_PAUSE); // unpause
ShowHighscoreTable(w->window_number, WP(w, highscore_d).rank);