gfx.c slow change to new powerup gfx engine

origin
stpohle 23 years ago
parent 30a5db4172
commit 405867ec5e

@ -959,6 +959,8 @@ gfx_free_tileset ()
SDL_FreeSurface (gfx.bomb.image); SDL_FreeSurface (gfx.bomb.image);
if (gfx.fire.image != NULL) if (gfx.fire.image != NULL)
SDL_FreeSurface (gfx.fire.image); SDL_FreeSurface (gfx.fire.image);
if (gfx.powerup.image != NULL)
SDL_FreeSurface (gfx.powerup.image);
gfx.bomb.image = NULL; gfx.bomb.image = NULL;
gfx.fire.image = NULL; gfx.fire.image = NULL;
}; };

@ -46,6 +46,7 @@ struct __gfx {
short int postab[256]; // table of points where we need to go to. short int postab[256]; // table of points where we need to go to.
_gfxani field[FT_max]; // the field animations _gfxani field[FT_max]; // the field animations
_gfxani powerup; // powerup field animation
_gfxani fire; // fire (explostion) _gfxani fire; // fire (explostion)
_gfxani bomb; // bomb animation _gfxani bomb; // bomb animation
_gfxani ill; // sick animation above the player _gfxani ill; // sick animation above the player

Loading…
Cancel
Save