Differences From Artifact [0eb850e277f37179]:
- File
src/game.d
- 2012-07-15 04:44:33 - part of checkin [879099f815] on branch trunk - Moved 'abort' behavior completely out of Game. (user: kinaba) [annotate]
To Artifact [e25c75ea96d80507]:
- File
src/game.d
- 2012-07-15 06:47:16 - part of checkin [6d497011d6] on branch trunk - Fixed judgement order of water-death and stage-clear. This makes flood2 solved. (user: kinaba) [annotate]
- 2012-07-15 12:14:10 - part of checkin [e02668367d] on branch trunk - Revert redesign in the trunk. (user: kinaba) [annotate]
411 cleared = true; 411 cleared = true;
412 } 412 }
413 else { 413 else {
414 lambda += ld[0]; 414 lambda += ld[0];
415 if( ld[1] ) 415 if( ld[1] )
416 dead = true; 416 dead = true;
417 } 417 }
> 418 if(!cleared) {
418 if( map.robot.y <= water_level ) | 419 if( map.robot.y <= water_level )
419 ++under_water; | 420 ++under_water;
420 else | 421 else
421 under_water = 0; | 422 under_water = 0;
422 if( under_water > map.waterproof ) | 423 if( under_water > map.waterproof )
423 dead = true; | 424 dead = true;
> 425 }
424 turn += 1; 426 turn += 1;
425 } 427 }
426 428
427 Map map; 429 Map map;
428 Water water; 430 Water water;
429 int turn = 0; 431 int turn = 0;
430 bool dead = false; 432 bool dead = false;