From a6419bd67d9efeccc78f7c7997168965ae0068d7 Mon Sep 17 00:00:00 2001 From: stpohle Date: Thu, 24 Jul 2003 03:52:11 +0000 Subject: [PATCH] updaterect list needs to be cleaned before the next game starts --- TODO | 6 +++++- configure.in | 2 ++ src/basic.h | 3 +-- src/game.c | 2 ++ src/gfx.c | 3 ++- src/multiwait.c | 4 +++- 6 files changed, 15 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 9249b54..f72f083 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,4 @@ -$Id: TODO,v 1.16 2003/07/24 01:47:48 stpohle Exp $ +$Id: TODO,v 1.17 2003/07/24 03:52:11 stpohle Exp $ next version (0.9.10): ====================== @@ -26,3 +26,7 @@ always change if possible: - more players - we need some more sound for picking up items. - find better way for menus + +- bug: 1024x786 at start time.. and in the game chaning to 800x600 + the game crashs as soon as we want to start a single game. + \ No newline at end of file diff --git a/configure.in b/configure.in index 809708c..00e7c73 100644 --- a/configure.in +++ b/configure.in @@ -19,6 +19,8 @@ AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC +AC_C_INLINE + dnl Checks for programs. diff --git a/src/basic.h b/src/basic.h index d33d10b..8e06a53 100644 --- a/src/basic.h +++ b/src/basic.h @@ -1,4 +1,4 @@ -/* $Id: basic.h,v 1.40 2003/07/24 01:47:48 stpohle Exp $ */ +/* $Id: basic.h,v 1.41 2003/07/24 03:52:11 stpohle Exp $ */ /* basic types which we need everywhere */ #ifndef _BC_BASIC_H_ @@ -80,7 +80,6 @@ #define MW_IS_GFX_SELECT(__gfx_nr,__result) for (__result = (MAX_PLAYERS-1); (bman.players[__result].gfx_nr != __gfx_nr) && (__result >= 0); __result--); - enum _networkflags { NETF_firewall = 1 }; diff --git a/src/game.c b/src/game.c index 8322e23..598e9dd 100644 --- a/src/game.c +++ b/src/game.c @@ -113,6 +113,8 @@ game_loop () int gameovertimeout = TIME_FACTOR * 5; // gameovertimeout unsigned char key_bomb = 0; // last state of the bomb key + gfx_blitupdaterectclear (); + draw_logo (); draw_field (); if (GT_MP_PTP) diff --git a/src/gfx.c b/src/gfx.c index 6c15d91..dc5d437 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -1,4 +1,4 @@ -/* $Id: gfx.c,v 1.25 2003/07/22 23:15:03 stpohle Exp $ */ +/* $Id: gfx.c,v 1.26 2003/07/24 03:56:20 stpohle Exp $ */ /* gfx.c */ #include "bomberclone.h" @@ -148,6 +148,7 @@ gfx_init () return; } SDL_ShowCursor (SDL_DISABLE); + gfx_blitupdaterectclear (); gfx_loaddata (); }; diff --git a/src/multiwait.c b/src/multiwait.c index def99e1..6a7eed0 100644 --- a/src/multiwait.c +++ b/src/multiwait.c @@ -25,6 +25,7 @@ mw_init () { int i; SDL_Surface *tmp; + draw_logo (); menu_displaytext ("Please Wait", "Loading GFX Data", 64, 128, 64); @@ -83,7 +84,8 @@ mw_draw_status () /* 1. the head */ px = gfx.res.x / 320; x = (gfx.res.x - px * 320) / 2; - + gfx_blitupdaterectclear (); + for (pnr = 0; pnr < px; pnr++) { font_setcolor (128, 128, 128, 0); font_draw (pnr * 320 + x - 2, 22, " Wins Points", 0);