diff --git a/src/field.c b/src/field.c index 002fb9c..48ae205 100644 --- a/src/field.c +++ b/src/field.c @@ -1,4 +1,4 @@ -/* $Id: field.c,v 1.30 2003/06/07 19:05:55 stpohle Exp $ */ +/* $Id: field.c,v 1.31 2003/06/07 19:35:42 stpohle Exp $ */ /* field.c - procedures which are needed to control the field */ #include @@ -23,6 +23,8 @@ draw_stone (int x, int y) d_fatal ("Draw Stone out of range [%d,%d]\n", x, y); return; } + + printf ("Draw Stone [%d,%d]\n", x,y); src.w = dest.w = gfx.block.x; src.h = dest.h = gfx.block.y; @@ -40,6 +42,8 @@ draw_stone (int x, int y) srcbg.h = dest.h; srcbg.x = (x % gfx.field[FT_nothing].frames) * gfx.block.x; srcbg.y = (y % gfx.field[FT_nothing].frames) * gfx.block.y; + + printf (" Draw Background\n"); SDL_BlitSurface (gfx.field[FT_nothing].image, &srcbg, gfx.screen, &dest); } @@ -87,22 +91,27 @@ draw_stone (int x, int y) src.y = stone->frame * gfx.block.y; } + printf (" Draw Stone or Powerup Background Type=%d i=%d d=%d\n", stone->type, i, d); if (srcimg != NULL) SDL_BlitSurface (srcimg, &src, gfx.screen, &dest); if (i >= FT_death) { /* draw now the powerup itself */ + printf (" Draw Stone the Powerup itself\n"); srcimg = gfx.field[i].image; src.y = 0; SDL_BlitSurface (srcimg, &src, gfx.screen, &dest); } // draw explosions if there is any + printf (" Draw Explosion if there is any\n"); for (d = 0, i = 0; d < 4; d++) if (stone->ex[d].count > 0) { i = 1; // mark that there is already an explosion draw_fire (x, y, d, -1); } + printf (" function ok.\n"); + return; };