Check-in [bf626def96]
Not logged in
Overview
SHA1 Hash:bf626def9607569dfb6be62bda9da56a981b60f8
Date: 2012-07-16 08:02:08
User: kinaba
Comment:Fixed bug in simulator that pushed rock may not fall.
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 [b141e39ade797d94] to [fe18e86f2be2ed95].

319 319 robot = new Pos(y+dy,x+dx); 320 320 } else if(dy==0 && rocky(this[y+dy,x+dx]) && ' '==this[y+dy*2,x+dx*2]) { 321 321 char rock = this[y+dy,x+dx]; 322 322 this[y,x]=' '; 323 323 this[y+dy,x+dx]='R'; 324 324 this[y+dy*2,x+dx*2]=rock; 325 325 robot = new Pos(y+dy,x+dx); 326 + may_update ~= new Pos(y+dy*2,x+dx*2); 326 327 } else if('A'<=this[y+dy,x+dx] && this[y+dy,x+dx]<='I') { 327 328 this[y,x]=' '; 328 329 Pos tp = tr.target_pos(this[y+dy,x+dx]); 329 330 foreach(p; tr.source_pos(this[tp])) { 330 331 emptified(p); 331 332 this[p] = ' '; 332 333 }