Differences From Artifact [fe18e86f2be2ed95]:
- File
src/game.d
- 2012-07-15 23:02:08 - part of checkin [bf626def96] on branch trunk - Fixed bug in simulator that pushed rock may not fall. (user: kinaba) [annotate]
To Artifact [d9bf3ea129c7cbc5]:
- File
src/game.d
- 2012-07-16 03:53:00 - part of checkin [971863e35a] on branch trunk - No-cloning death-move(). With several fixes to the simulator. (user: kinaba) [annotate]
390 390 dead=true;
391 391 }
392 392 }
393 393 else if(this[p]=='W') {
394 394 if(hige_day) {
395 395 for(int dy=-1; dy<=+1; ++dy)
396 396 for(int dx=-1; dx<=+1; ++dx)
397 - if(this[p.y+dy,p.x+dx] == ' ')
397 + if(this[p.y+dy,p.x+dx] == ' ') {
398 398 write(p.y+dy,p.x+dx,'W');
399 + if(robot.y==p.y+dy-1 && robot.x==p.x+dx)
400 + dead = false; // guarded by hige!
401 + }
399 402 }
400 403 }
401 404 }
402 405
403 406 return dead;
404 407 }
405 408 }