BadValue SDL Error Message playermove ? in draw_stone

origin
stpohle 23 years ago
parent 8bf2cf9a9d
commit ea1eb12125

@ -1,4 +1,4 @@
/* $Id: field.c,v 1.32 2003/06/07 19:52:45 stpohle Exp $ */
/* $Id: field.c,v 1.33 2003/06/16 21:27:25 stpohle Exp $ */
/* field.c - procedures which are needed to control the field */
#include <stdlib.h>
@ -19,7 +19,7 @@ draw_stone (int x, int y)
int i,
d;
if (x < 0 || y < 0 || x > bman.fieldsize.x || y > bman.fieldsize.y) {
if (x < 0 || y < 0 || x >= bman.fieldsize.x || y >= bman.fieldsize.y) {
d_fatal ("Draw Stone out of range [%d,%d]\n", x, y);
return;
}

Loading…
Cancel
Save