Programm Title Name

origin
stpohle 23 years ago
parent 33fd99d45b
commit 16e4fbc5fd

@ -154,7 +154,7 @@ get_bomb_on (int x, int y, _point bombs[])
void void
draw_fire (int x, int y, int d) draw_fire (int x, int y, int d, int frame)
{ {
SDL_Rect src, SDL_Rect src,
dest; dest;
@ -165,7 +165,7 @@ draw_fire (int x, int y, int d)
dest.x = gfx.offset.x + x * gfx.block.x; dest.x = gfx.offset.x + x * gfx.block.x;
dest.y = gfx.offset.y + y * gfx.block.y; dest.y = gfx.offset.y + y * gfx.block.y;
src.y = 0; src.y = frame * src.w;
src.x = d * src.w; src.x = d * src.w;
SDL_BlitSurface (gfx.fire.image, &src, gfx.screen, &dest); SDL_BlitSurface (gfx.fire.image, &src, gfx.screen, &dest);
@ -328,7 +328,7 @@ do_explosion (int p, int b)
BS_off && bomb->firerst[d] == -1) { BS_off && bomb->firerst[d] == -1) {
bomb->firer[d]++; bomb->firer[d]++;
bman.field[bomb->pos.x + dx][bomb->pos.y + dy].ex[d]++; bman.field[bomb->pos.x + dx][bomb->pos.y + dy].ex[d]++;
draw_fire (bomb->pos.x + dx, bomb->pos.y + dy, d); draw_fire (bomb->pos.x + dx, bomb->pos.y + dy, d, 0);
} }
else { else {
bomb->firerst[d] = bomb->firer[d]; bomb->firerst[d] = bomb->firer[d];

@ -177,7 +177,7 @@ extern void player_set_gfx (_player *p, signed char gfx_nr);
extern void bomb_loop (); extern void bomb_loop ();
extern void restore_bomb_screen (); extern void restore_bomb_screen ();
extern void get_bomb_on (int x, int y, _point bombs[]); extern void get_bomb_on (int x, int y, _point bombs[]);
extern void draw_fire (int x, int y, int frame); extern void draw_fire (int x, int y, int d, int frame);
extern void do_explosion (int p, int b); extern void do_explosion (int p, int b);
extern void restore_explosion (_bomb * bomb); extern void restore_explosion (_bomb * bomb);
extern int explosion_check_field (int x, int y, int p, int b); extern int explosion_check_field (int x, int y, int p, int b);

@ -57,7 +57,7 @@ draw_stone (int x, int y)
for (d = 0, i = 0; d < 4; d++) for (d = 0, i = 0; d < 4; d++)
if (stone->ex[d] > 0) { if (stone->ex[d] > 0) {
i = 1; // mark that there is already an explosion i = 1; // mark that there is already an explosion
draw_fire (x, y, d); draw_fire (x, y, d, 0);
} }
if (i == 0) // we don't have to do this anymore because this was happend in draw_fire if (i == 0) // we don't have to do this anymore because this was happend in draw_fire

@ -25,6 +25,9 @@ main (int argc, char **argv)
return (1); return (1);
} }
sprintf (text,"Bomberclone %s", VERSION);
SDL_WM_SetCaption(text , NULL);
game_init (argv); game_init (argv);
d_printf ("\n\n ***** Bomberclone Version %s \n\n",VERSION); d_printf ("\n\n ***** Bomberclone Version %s \n\n",VERSION);
if (ReadConfig()) { if (ReadConfig()) {

Loading…
Cancel
Save