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

pull/155/head
belugas 16 years ago
parent 5e11fec66b
commit 70dc7edd92

@ -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);

Loading…
Cancel
Save