|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: game.c,v 1.65 2003/12/28 19:07:38 stpohle Exp $
|
|
|
|
/* $Id: game.c,v 1.66 2003/12/28 20:11:46 stpohle Exp $
|
|
|
|
game.c - procedures for the game. */
|
|
|
|
game.c - procedures for the game. */
|
|
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <string.h>
|
|
|
@ -399,13 +399,13 @@ void game_showresult () {
|
|
|
|
|
|
|
|
|
|
|
|
strcpy (text, "[CTRL],[RETURN] or [STRG] for another game");
|
|
|
|
strcpy (text, "[CTRL],[RETURN] or [STRG] for another game");
|
|
|
|
x = (gfx.res.x - (font[1].size.x * strlen (text)) - 64) / 2;
|
|
|
|
x = (gfx.res.x - (font[1].size.x * strlen (text)) - 64) / 2;
|
|
|
|
font_drawbold (x, gfx.res.y - (2*font[0].size.y) - 2, text, 0, 6, 2);
|
|
|
|
font_drawbold (x, gfx.res.y - (2*font[0].size.y) - 2, text, 0, COLOR_brown, 1);
|
|
|
|
font_draw (x, gfx.res.y - (2*font[0].size.y) - 2, text, 0, 5);
|
|
|
|
font_draw (x, gfx.res.y - (2*font[0].size.y) - 2, text, 0, COLOR_yellow);
|
|
|
|
|
|
|
|
|
|
|
|
strcpy (text, "or [ESC] to leave the game.");
|
|
|
|
strcpy (text, "or [ESC] to leave the game.");
|
|
|
|
x = (gfx.res.x - (font[1].size.x * strlen (text)) - 64) / 2;
|
|
|
|
x = (gfx.res.x - (font[1].size.x * strlen (text)) - 64) / 2;
|
|
|
|
font_drawbold (x, gfx.res.y - font[0].size.y - 2, text, 0, 6, 2);
|
|
|
|
font_drawbold (x, gfx.res.y - font[0].size.y - 2, text, 0, COLOR_brown, 1);
|
|
|
|
font_draw (x, gfx.res.y - font[0].size.y - 2, text, 0, 5);
|
|
|
|
font_draw (x, gfx.res.y - font[0].size.y - 2, text, 0, COLOR_yellow);
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 1, p = 0; p < MAX_PLAYERS; p++) {
|
|
|
|
for (i = 1, p = 0; p < MAX_PLAYERS; p++) {
|
|
|
|
if (PS_IS_used (players[p].state)) {
|
|
|
|
if (PS_IS_used (players[p].state)) {
|
|
|
@ -419,11 +419,12 @@ void game_showresult () {
|
|
|
|
x = 16;
|
|
|
|
x = 16;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
font_drawbold (x + 80, y + 4, players[p].name, 0, 4, 2);
|
|
|
|
if (PS_IS_alife (players[p].state)) {
|
|
|
|
if (PS_IS_alife (players[p].state))
|
|
|
|
font_drawbold (x + 80, y + 4, players[p].name, 0, COLOR_brown, 1);
|
|
|
|
font_draw (x + 80, y + 4, players[p].name, 0, 0);
|
|
|
|
font_draw (x + 80, y + 4, players[p].name, 0, COLOR_yellow);
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
font_draw (x + 80, y + 4, players[p].name, 0, 4);
|
|
|
|
font_draw (x + 80, y + 4, players[p].name, 0, COLOR_gray);
|
|
|
|
|
|
|
|
|
|
|
|
sprintf (text, "%3d", players[p].wins);
|
|
|
|
sprintf (text, "%3d", players[p].wins);
|
|
|
|
font_draw (x + 80 + (LEN_PLAYERNAME+2) * font[0].size.x, y + 4, text, 0, 0);
|
|
|
|
font_draw (x + 80 + (LEN_PLAYERNAME+2) * font[0].size.x, y + 4, text, 0, 0);
|
|
|
|