Changeset 1117 for cacatris


Ignore:
Timestamp:
Sep 27, 2006, 9:54:53 AM (13 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Score is updated while removing many lines, fixed down key bug while beeing at left of the playfield
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cacatris/trunk/src/main.c

    r1111 r1117  
    102102        if(down)
    103103        {
    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)))
    105105            {
    106106                fixed_y+=speed;
     
    304304        return 0;
    305305    }
    306 
    307306    return 1;
    308307}
     
    320319    if(v==FIELD_WIDTH) {
    321320        memmove(&playfield[FIELD_WIDTH], playfield, (FIELD_HEIGHT-1)*FIELD_WIDTH);
     321        ret++;
    322322        ret += maybe_remove_line();
    323323        return ret;
    324324    }
    325     return 0;
    326 }
     325    return ret;
     326}
Note: See TracChangeset for help on using the changeset viewer.