diff --git a/mines.c b/mines.c index 5ee2d35..3ebf002 100644 --- a/mines.c +++ b/mines.c @@ -28,7 +28,6 @@ typedef signed char byte; #else int len,wid; #endif - int py,px,flags; int untouched; int mscount; @@ -99,13 +98,15 @@ void drawmines(int sy,int sx,byte board[len][wid],bool mines[len][wid]){ void mine(bool mines[len][wid]){ int y=rand()%len; int x=rand()%wid; + mines[py][px]=1;//so it doesn't place mines where you click first for(int n=0;n