|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: game.c,v 1.47 2003/07/27 19:30:06 stpohle Exp $
|
|
|
|
/* $Id: game.c,v 1.48 2003/07/27 20:16:58 stpohle Exp $
|
|
|
|
game.c - procedures for the game. */
|
|
|
|
game.c - procedures for the game. */
|
|
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <string.h>
|
|
|
@ -326,12 +326,19 @@ void game_showresult () {
|
|
|
|
font_draw (x, y, text, 2);
|
|
|
|
font_draw (x, y, text, 2);
|
|
|
|
y += font[2].size.x + 8;
|
|
|
|
y += font[2].size.x + 8;
|
|
|
|
|
|
|
|
|
|
|
|
strcpy (text, "Hit [CTRL], [RETURN] or [STRG]");
|
|
|
|
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_setcolor (128, 128, 0, 1);
|
|
|
|
font_setcolor (128, 128, 0, 0);
|
|
|
|
font_drawbold (x, gfx.res.y - font[1].size.y - 2, text, 1, 1);
|
|
|
|
font_drawbold (x, gfx.res.y - (2*font[0].size.y) - 2, text, 0, 2);
|
|
|
|
font_setcolor (255, 255, 128, 1);
|
|
|
|
font_setcolor (255, 255, 128, 0);
|
|
|
|
font_draw (x, gfx.res.y - font[1].size.y - 2, text, 1);
|
|
|
|
font_draw (x, gfx.res.y - (2*font[0].size.y) - 2, text, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
strcpy (text, "or [ESC] to leave the game.");
|
|
|
|
|
|
|
|
x = (gfx.res.x - (font[1].size.x * strlen (text)) - 64) / 2;
|
|
|
|
|
|
|
|
font_setcolor (128, 128, 0, 0);
|
|
|
|
|
|
|
|
font_drawbold (x, gfx.res.y - font[0].size.y - 2, text, 0, 2);
|
|
|
|
|
|
|
|
font_setcolor (255, 255, 128, 0);
|
|
|
|
|
|
|
|
font_draw (x, gfx.res.y - font[0].size.y - 2, text, 0);
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 1, p = 0; p < MAX_PLAYERS; p++) {
|
|
|
|
for (i = 1, p = 0; p < MAX_PLAYERS; p++) {
|
|
|
|
if (PS_IS_used (bman.players[p].state)) {
|
|
|
|
if (PS_IS_used (bman.players[p].state)) {
|
|
|
@ -395,6 +402,7 @@ void game_showresult () {
|
|
|
|
if ((keys[SDLK_RETURN] || keys[SDLK_LCTRL] || keys[SDLK_RCTRL]) && (!keypressed) && (event.type = SDL_KEYDOWN)) {
|
|
|
|
if ((keys[SDLK_RETURN] || keys[SDLK_LCTRL] || keys[SDLK_RCTRL]) && (!keypressed) && (event.type = SDL_KEYDOWN)) {
|
|
|
|
done = 1;
|
|
|
|
done = 1;
|
|
|
|
keypressed = 1;
|
|
|
|
keypressed = 1;
|
|
|
|
|
|
|
|
bman.state = GS_running;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (event.type == SDL_KEYUP)
|
|
|
|
if (event.type == SDL_KEYUP)
|
|
|
|