|
|
@ -53,6 +53,7 @@ mw_shutdown ()
|
|
|
|
chat_show (-1, -1, -1, -1);
|
|
|
|
chat_show (-1, -1, -1, -1);
|
|
|
|
|
|
|
|
|
|
|
|
gfx_free_players ();
|
|
|
|
gfx_free_players ();
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < MAX_PLAYERS; i++)
|
|
|
|
for (i = 0; i < MAX_PLAYERS; i++)
|
|
|
|
SDL_FreeSurface (mw_plgfx[i]);
|
|
|
|
SDL_FreeSurface (mw_plgfx[i]);
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -82,8 +83,12 @@ mw_draw_status ()
|
|
|
|
px = gfx.res.x / 320;
|
|
|
|
px = gfx.res.x / 320;
|
|
|
|
x = (gfx.res.x - px * 320) / 2;
|
|
|
|
x = (gfx.res.x - px * 320) / 2;
|
|
|
|
|
|
|
|
|
|
|
|
for (pnr = 0; pnr < px; pnr++)
|
|
|
|
for (pnr = 0; pnr < px; pnr++) {
|
|
|
|
font_draw (pnr * 320 + x, 24, " Wins Points", 1);
|
|
|
|
font_setcolor (128,128,128,0);
|
|
|
|
|
|
|
|
font_draw (pnr * 320 + x - 2, 22, " Wins Points", 0);
|
|
|
|
|
|
|
|
font_setcolor (192,192,255,0);
|
|
|
|
|
|
|
|
font_draw (pnr * 320 + x, 24, " Wins Points", 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 2. the names with points */
|
|
|
|
/* 2. the names with points */
|
|
|
|
for (x1 = pnr = 0, y = 48; pnr < MAX_PLAYERS; pnr++) {
|
|
|
|
for (x1 = pnr = 0, y = 48; pnr < MAX_PLAYERS; pnr++) {
|
|
|
@ -105,8 +110,9 @@ mw_draw_status ()
|
|
|
|
if (PS_IS_used (bman.players[pnr].state)) {
|
|
|
|
if (PS_IS_used (bman.players[pnr].state)) {
|
|
|
|
|
|
|
|
|
|
|
|
if (bman.lastwinner == pnr)
|
|
|
|
if (bman.lastwinner == pnr)
|
|
|
|
font_draw (x + x1 * 320, y, text, 0);
|
|
|
|
font_setcolor (255,255,192,0);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
font_setcolor (192,192,192,0);
|
|
|
|
font_draw (x + x1 * 320, y, text, 0);
|
|
|
|
font_draw (x + x1 * 320, y, text, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
x1++;
|
|
|
|
x1++;
|
|
|
|