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 411 cleared = true;
412 412 }
413 413 else {
414 414 lambda += ld[0];
415 415 if( ld[1] )
416 416 dead = true;
417 417 }
418 - if( map.robot.y <= water_level )
419 - ++under_water;
420 - else
421 - under_water = 0;
422 - if( under_water > map.waterproof )
423 - dead = true;
418 + if(!cleared) {
419 + if( map.robot.y <= water_level )
420 + ++under_water;
421 + else
422 + under_water = 0;
423 + if( under_water > map.waterproof )
424 + dead = true;
425 + }
424 426 turn += 1;
425 427 }
426 428
427 429 Map map;
428 430 Water water;
429 431 int turn = 0;
430 432 bool dead = false;