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 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;