Changeset 1117 for cacatris/trunk/src/main.c
- Timestamp:
- Sep 27, 2006, 9:54:53 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cacatris/trunk/src/main.c
r1111 r1117 102 102 if(down) 103 103 { 104 while((movable(current_piece, x -1, y, rotation)) && (!has_landed(current_piece, x-1, y, rotation)))104 while((movable(current_piece, x, y, rotation)) && (!has_landed(current_piece, x, y, rotation))) 105 105 { 106 106 fixed_y+=speed; … … 304 304 return 0; 305 305 } 306 307 306 return 1; 308 307 } … … 320 319 if(v==FIELD_WIDTH) { 321 320 memmove(&playfield[FIELD_WIDTH], playfield, (FIELD_HEIGHT-1)*FIELD_WIDTH); 321 ret++; 322 322 ret += maybe_remove_line(); 323 323 return ret; 324 324 } 325 return 0;326 } 325 return ret; 326 }
Note: See TracChangeset
for help on using the changeset viewer.