File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,11 @@ void gameUpdate()
148
148
int by = k2;
149
149
mode = 0 ;
150
150
}
151
+ <<<<<<< HEAD
151
152
if ((mode == 2 ) && (map[k][k2].state == 0 ))
153
+ =======
154
+ if ((mode == 2 ) && (map[k][k2].state == 0 ) && (BombCount < 16 ))
155
+ >>>>>>> origin/master
152
156
{
153
157
map[k][k2].state = 2 ;
154
158
BombCount++;
@@ -266,7 +270,11 @@ void gameUpdate()
266
270
for (int stop = arrSize, k2 = 0 ; k2 <= stop; k2++)
267
271
if ((map[k][k2].state ) == 0 )
268
272
k11 = 1 ;
273
+ <<<<<<< HEAD
269
274
if ((k11 == 0 ))
275
+ =======
276
+ if ((k11 == 0 ) && (BombCount == 16 ))
277
+ >>>>>>> origin/master
270
278
win = true ;
271
279
}
272
280
@@ -358,8 +366,13 @@ int main()
358
366
359
367
if (event.type == sf::Event::MouseMoved) {
360
368
mouse = window.mapPixelToCoords (sf::Vector2i (event.mouseMove .x , event.mouseMove .y ));
369
+ <<<<<<< HEAD
361
370
for (int i = 0 ; i <= arrSize; i++) {
362
371
for (int j = 0 ; j <= arrSize; j++) {
372
+ =======
373
+ for (int i = 0 ; i <= 15 ; i++) {
374
+ for (int j = 0 ; j <= 15 ; j++) {
375
+ >>>>>>> origin/master
363
376
if ((mouse.x >= map[i][j].x ) && (mouse.x <= map[i][j].x + 32 ) && (mouse.y >= map[i][j].y ) && (mouse.y <= map[i][j].y + 32 )) {
364
377
stx = map[i][j].x ;
365
378
sty = map[i][j].y ;
You can’t perform that action at this time.
0 commit comments