|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: game.c,v 1.103 2004/12/01 02:41:54 stpohle Exp $
|
|
|
|
/* $Id: game.c,v 1.104 2004/12/01 21:47:59 stpohle Exp $
|
|
|
|
game.c - procedures for the game. */
|
|
|
|
game.c - procedures for the game. */
|
|
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <string.h>
|
|
|
@ -300,7 +300,7 @@ game_loop ()
|
|
|
|
if (game_check_endgame () && bman.timeout >= 0.0f)
|
|
|
|
if (game_check_endgame () && bman.timeout >= 0.0f)
|
|
|
|
bman.timeout = 0.0f;
|
|
|
|
bman.timeout = 0.0f;
|
|
|
|
|
|
|
|
|
|
|
|
if ((GT_SP || GT_MP_PTPM) && bman.timeout < -GAME_OVERTIMEOUT && (!debug)) {
|
|
|
|
if ((GT_SP || GT_MP_PTPM) && bman.timeout < -GAME_OVERTIMEOUT) {
|
|
|
|
d_printf ("GAME: Game Over\n");
|
|
|
|
d_printf ("GAME: Game Over\n");
|
|
|
|
done = 1;
|
|
|
|
done = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -311,8 +311,6 @@ game_loop ()
|
|
|
|
if (menu != NULL)
|
|
|
|
if (menu != NULL)
|
|
|
|
game_menu_loop (&event, eventstate);
|
|
|
|
game_menu_loop (&event, eventstate);
|
|
|
|
|
|
|
|
|
|
|
|
s_delay (60); // for debug only
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gfx_blitdraw ();
|
|
|
|
gfx_blitdraw ();
|
|
|
|
s_calctimesync ();
|
|
|
|
s_calctimesync ();
|
|
|
|
bman.timeout -= timediff;
|
|
|
|
bman.timeout -= timediff;
|
|
|
@ -717,8 +715,8 @@ void game_showresultnormal (int pos_x, int pos_y, int pos_w, int pos_h) {
|
|
|
|
for (i = 1, p = 0; p < pl_cnt; p++) {
|
|
|
|
for (i = 1, p = 0; p < pl_cnt; p++) {
|
|
|
|
if (PS_IS_used (pl[p]->state)) {
|
|
|
|
if (PS_IS_used (pl[p]->state)) {
|
|
|
|
if (PS_IS_alife (pl[p]->state)) {
|
|
|
|
if (PS_IS_alife (pl[p]->state)) {
|
|
|
|
font_gfxdrawbold (pos_x + x + GFX_MENUPLAYERIMGSIZE_X, pos_y + y - 10, pl[p]->name, 0, COLOR_brown, 1, 1);
|
|
|
|
font_gfxdrawbold (pos_x + x + GFX_MENUPLAYERIMGSIZE_X + 8, pos_y + y - 10, pl[p]->name, 0, COLOR_brown, 1, 1);
|
|
|
|
font_gfxdraw (pos_x + x + GFX_MENUPLAYERIMGSIZE_X,pos_y + y - 10, pl[p]->name, 0, COLOR_yellow, 1);
|
|
|
|
font_gfxdraw (pos_x + x + GFX_MENUPLAYERIMGSIZE_X + 8,pos_y + y - 10, pl[p]->name, 0, COLOR_yellow, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
font_gfxdraw (pos_x + x + GFX_MENUPLAYERIMGSIZE_X,pos_y + y - 10, pl[p]->name, 0, COLOR_gray, 1);
|
|
|
|
font_gfxdraw (pos_x + x + GFX_MENUPLAYERIMGSIZE_X,pos_y + y - 10, pl[p]->name, 0, COLOR_gray, 1);
|
|
|
|