game result screen in single mode fixed again

origin
stpohle 22 years ago
parent 67b82f30e1
commit 1f118314bc

@ -1,7 +1,8 @@
$Id: ChangeLog,v 1.33 2003/07/27 14:34:37 stpohle Exp $ $Id: ChangeLog,v 1.34 2003/07/27 19:30:04 stpohle Exp $
Version 0.9.10 Version 0.9.10
============== ==============
2003-07-27
- added: two ways the game can end now. the old Bomberman - added: two ways the game can end now. the old Bomberman
style with getting the size of the gamefield down and style with getting the size of the gamefield down and

@ -4,6 +4,7 @@ INCLUDES =
bin_PROGRAMS = bomberclone bin_PROGRAMS = bomberclone
bomberclone_SOURCES = \ bomberclone_SOURCES = \
basic.h\
main.c\ main.c\
bomb.c\ bomb.c\
bomberclone.h\ bomberclone.h\
@ -11,6 +12,7 @@ bomberclone_SOURCES = \
packets.c\ packets.c\
font.c\ font.c\
font.h\ font.h\
gfx.h\
gfx.c\ gfx.c\
gfxengine.c\ gfxengine.c\
gfxpixelimage.c\ gfxpixelimage.c\
@ -27,6 +29,7 @@ bomberclone_SOURCES = \
tileset.c\ tileset.c\
field.c\ field.c\
network.h\ network.h\
sysfunc.h\
sysfunc.c\ sysfunc.c\
configuration.c\ configuration.c\
pkgcache.c\ pkgcache.c\
@ -43,4 +46,3 @@ bomberclone_SOURCES = \
sound.c sound.c
## bomberclone_LDADD = ## bomberclone_LDADD =

@ -1,4 +1,4 @@
/* $Id: game.c,v 1.46 2003/07/27 13:29:25 stpohle Exp $ /* $Id: game.c,v 1.47 2003/07/27 19:30:06 stpohle Exp $
game.c - procedures for the game. */ game.c - procedures for the game. */
#include <string.h> #include <string.h>
@ -298,7 +298,7 @@ void game_showresult () {
dest.x = dest.y = 0; dest.x = dest.y = 0;
dest.w = gfx.res.x; dest.w = gfx.res.x;
dest.h = gfx.res.y; dest.h = gfx.res.y;
gfx_load_players (64, 64); gfx_load_players (40, 40);
draw_logo (); draw_logo ();
strcpy (text, "Game Result"); strcpy (text, "Game Result");
@ -359,11 +359,12 @@ void game_showresult () {
font_draw (x + 80 + (LEN_PLAYERNAME+5) * font[0].size.x, y + 4, text, 0); font_draw (x + 80 + (LEN_PLAYERNAME+5) * font[0].size.x, y + 4, text, 0);
dest.x = x; dest.x = x;
dest.y = y; dest.y = y - 32;
src.w = dest.w = bman.players[p].gfx->ani.w; src.w = dest.w = bman.players[p].gfx->ani.w;
src.h = dest.h = bman.players[p].gfx->ani.h; src.h = dest.h = bman.players[p].gfx->ani.h;
src.x = bman.players[p].gfx->ani.w * down; src.x = bman.players[p].gfx->ani.w * down;
src.y = 0; src.y = 0;
gfx_blit (bman.players[p].gfx->ani.image, &src, gfx.screen, &dest, 1);
} }
} }

Loading…
Cancel
Save