From 405867ec5e6bba544add6cb24c44bfa9b505a147 Mon Sep 17 00:00:00 2001 From: stpohle Date: Sun, 1 Jun 2003 21:23:09 +0000 Subject: [PATCH] gfx.c slow change to new powerup gfx engine --- src/gfx.c | 2 ++ src/gfx.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/gfx.c b/src/gfx.c index 8aa30c3..fb4116b 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -959,6 +959,8 @@ gfx_free_tileset () SDL_FreeSurface (gfx.bomb.image); if (gfx.fire.image != NULL) SDL_FreeSurface (gfx.fire.image); + if (gfx.powerup.image != NULL) + SDL_FreeSurface (gfx.powerup.image); gfx.bomb.image = NULL; gfx.fire.image = NULL; }; diff --git a/src/gfx.h b/src/gfx.h index 508ad11..186ca17 100644 --- a/src/gfx.h +++ b/src/gfx.h @@ -46,6 +46,7 @@ struct __gfx { short int postab[256]; // table of points where we need to go to. _gfxani field[FT_max]; // the field animations + _gfxani powerup; // powerup field animation _gfxani fire; // fire (explostion) _gfxani bomb; // bomb animation _gfxani ill; // sick animation above the player