single player works now. menu_image and small_image form the players used. --> faster loading

origin
stpohle 21 years ago
parent 2eb9ef076c
commit c5234efcce

@ -1,4 +1,4 @@
/* $Id: game.c,v 1.91 2004/09/25 10:57:51 stpohle Exp $ /* $Id: game.c,v 1.92 2004/09/25 11:16:14 stpohle Exp $
game.c - procedures for the game. */ game.c - procedures for the game. */
#include <string.h> #include <string.h>
@ -39,7 +39,6 @@ game_draw_info ()
chat_setactive (0, 0); chat_setactive (0, 0);
} }
if (bman.updatestatusbar) { if (bman.updatestatusbar) {
redraw_logo (0, 0, gfx.res.x, (4.5 * 16)); redraw_logo (0, 0, gfx.res.x, (4.5 * 16));
dest.x = dest.y = 0; dest.x = dest.y = 0;
@ -55,7 +54,7 @@ game_draw_info ()
if ((players[i].state & PSFM_used) != 0) { if ((players[i].state & PSFM_used) != 0) {
if (players[i].gfx_nr != -1 && PS_IS_used (players[i].state)) { if (players[i].gfx_nr != -1 && PS_IS_used (players[i].state)) {
src.x = 3 * players[i].gfx->small_image->w; src.x = 0;
src.y = 0; src.y = 0;
src.w = dest.w = players[i].gfx->small_image->w; src.w = dest.w = players[i].gfx->small_image->w;
src.h = dest.h = players[i].gfx->small_image->h; src.h = dest.h = players[i].gfx->small_image->h;
@ -488,11 +487,11 @@ void game_showresult () {
dest.x = x; dest.x = x;
dest.y = y - 32; dest.y = y - 32;
src.w = dest.w = players[p].gfx->ani.w; src.w = dest.w = players[p].gfx->menu_image->w;
src.h = dest.h = players[p].gfx->ani.h; src.h = dest.h = players[p].gfx->menu_image->h;
src.x = players[p].gfx->ani.w * down; src.x = 0;
src.y = 0; src.y = 0;
gfx_blit (players[p].gfx->ani.image, &src, gfx.screen, &dest, 1); gfx_blit (players[p].gfx->menu_image, &src, gfx.screen, &dest, 1);
} }
} }

Loading…
Cancel
Save