updaterect list needs to be cleaned before the next game starts

origin
stpohle 23 years ago
parent c4eedcf3c6
commit a6419bd67d

@ -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.

@ -19,6 +19,8 @@ AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_C_INLINE
dnl Checks for programs.

@ -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
};

@ -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)

@ -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 ();
};

@ -25,6 +25,7 @@ mw_init ()
{
int i;
SDL_Surface *tmp;
draw_logo ();
menu_displaytext ("Please Wait", "Loading GFX Data", 64, 128, 64);
@ -83,6 +84,7 @@ 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);

Loading…
Cancel
Save