From 1f118314bc5bf9fb4490e683cc68307ac27984e8 Mon Sep 17 00:00:00 2001 From: stpohle Date: Sun, 27 Jul 2003 19:30:04 +0000 Subject: [PATCH] game result screen in single mode fixed again --- ChangeLog | 3 ++- src/Makefile.am | 6 ++++-- src/game.c | 7 ++++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 18f5fe9..729284e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 ============== +2003-07-27 - added: two ways the game can end now. the old Bomberman style with getting the size of the gamefield down and diff --git a/src/Makefile.am b/src/Makefile.am index a2dc79c..44defe2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -4,6 +4,7 @@ INCLUDES = bin_PROGRAMS = bomberclone bomberclone_SOURCES = \ + basic.h\ main.c\ bomb.c\ bomberclone.h\ @@ -11,6 +12,7 @@ bomberclone_SOURCES = \ packets.c\ font.c\ font.h\ + gfx.h\ gfx.c\ gfxengine.c\ gfxpixelimage.c\ @@ -27,6 +29,7 @@ bomberclone_SOURCES = \ tileset.c\ field.c\ network.h\ + sysfunc.h\ sysfunc.c\ configuration.c\ pkgcache.c\ @@ -42,5 +45,4 @@ bomberclone_SOURCES = \ sound.h \ sound.c -## bomberclone_LDADD = - +## bomberclone_LDADD = diff --git a/src/game.c b/src/game.c index 2e62461..c7a3d18 100644 --- a/src/game.c +++ b/src/game.c @@ -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. */ #include @@ -298,7 +298,7 @@ void game_showresult () { dest.x = dest.y = 0; dest.w = gfx.res.x; dest.h = gfx.res.y; - gfx_load_players (64, 64); + gfx_load_players (40, 40); draw_logo (); 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); dest.x = x; - dest.y = y; + dest.y = y - 32; src.w = dest.w = bman.players[p].gfx->ani.w; src.h = dest.h = bman.players[p].gfx->ani.h; src.x = bman.players[p].gfx->ani.w * down; src.y = 0; + gfx_blit (bman.players[p].gfx->ani.image, &src, gfx.screen, &dest, 1); } }