Check-in [6d497011d6]
Not logged in
Overview
SHA1 Hash:6d497011d68b9bee1ba40f0eb6aeb88e1fb07060
Date: 2012-07-15 15:47:16
User: kinaba
Comment:Fixed judgement order of water-death and stage-clear. This makes flood2 solved.
Timelines: family | ancestors | descendants | both | trunk
Diffs: redesign
Downloads: Tarball | ZIP archive
Other Links: files | file ages | manifest
Tags And Properties
Changes

Modified src/game.d from [0eb850e277f37179] to [e25c75ea96d80507].

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;