From 828f09f8370877cedca16eb2f242e498d8ad085f Mon Sep 17 00:00:00 2001 From: stpohle Date: Mon, 2 Jun 2003 23:47:37 +0000 Subject: [PATCH] Warning with frames == 0 --- src/field.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/field.c b/src/field.c index 480bb6e..f2ac71a 100644 --- a/src/field.c +++ b/src/field.c @@ -1,4 +1,4 @@ -/* $Id: field.c,v 1.26 2003/06/02 23:32:36 stpohle Exp $ */ +/* $Id: field.c,v 1.27 2003/06/02 23:47:37 stpohle Exp $ */ /* field.c - procedures which are needed to control the field */ #include @@ -33,6 +33,8 @@ draw_stone (int x, int y) srcbg.w = dest.w; srcbg.h = dest.h; + if (gfx.field[FT_nothing].frames == 0) + printf ("**************** WARNING *********** gfx.field[FT_nothing].frames == 0\n"); srcbg.x = (x % gfx.field[FT_nothing].frames) * gfx.block.x; srcbg.y = (y % gfx.field[FT_nothing].frames) * gfx.block.y;