Changeset 86029498 in mainline for tetris/screen.c


Ignore:
Timestamp:
2006-06-02T21:53:26Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
59ed572
Parents:
2408969
Message:

Small changes to tetris.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tetris/screen.c

    r2408969 r86029498  
    160160                char smallscr[55];
    161161
    162                 (void)snprintf(smallscr, sizeof(smallscr),
     162                snprintf(smallscr, sizeof(smallscr),
    163163                    "the screen is too small (must be at least %dx%d)",
    164164                    MINROWS, MINCOLS);
     
    204204        if (score != curscore) {
    205205                moveto(0, 0);
    206                 (void) printf("Score: %d", score);
     206                printf("Score: %d", score);
    207207                curscore = score;
    208208        }
     
    252252                        *sp = so;
    253253                        if (i != ccol) {
     254                                if (cur_so) {
     255                                        resume_normal();
     256                                        cur_so = 0;
     257                                }
    254258                                moveto(RTOD(j), CTOD(i));
    255259                        }
     
    262266                        }
    263267                        putstr("  ");
     268
    264269                        ccol = i + 1;
    265270                        /*
     
    282287                }
    283288        }
    284         resume_normal();
    285 
     289        if (cur_so)
     290                resume_normal();
    286291        fflush();
    287292}
Note: See TracChangeset for help on using the changeset viewer.