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. */
#include <string.h>
@ -38,7 +38,6 @@ game_draw_info ()
chat_show (4, 4.5*16, gfx.res.x - 8, gfx.offset.y - 4.5*16);
chat_setactive (0, 0);
}
if (bman.updatestatusbar) {
redraw_logo (0, 0, gfx.res.x, (4.5 * 16));
@ -55,7 +54,7 @@ game_draw_info ()
if ((players[i].state & PSFM_used) != 0) {
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.w = dest.w = players[i].gfx->small_image->w;
src.h = dest.h = players[i].gfx->small_image->h;
@ -488,11 +487,11 @@ void game_showresult () {
dest.x = x;
dest.y = y - 32;
src.w = dest.w = players[p].gfx->ani.w;
src.h = dest.h = players[p].gfx->ani.h;
src.x = players[p].gfx->ani.w * down;
src.w = dest.w = players[p].gfx->menu_image->w;
src.h = dest.h = players[p].gfx->menu_image->h;
src.x = 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