DIV by zero problem

origin
stpohle 23 years ago
parent 828f09f837
commit 0cde601cd7

@ -1,4 +1,4 @@
/* $Id: field.c,v 1.27 2003/06/02 23:47:37 stpohle Exp $ */
/* $Id: field.c,v 1.28 2003/06/02 23:58:59 stpohle Exp $ */
/* field.c - procedures which are needed to control the field */
#include <stdlib.h>
@ -33,8 +33,6 @@ 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;

Loading…
Cancel
Save