Rev 1653 | Rev 1710 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1653 | Rev 1688 | ||
---|---|---|---|
Line 306... | Line 306... | ||
306 | /* argv += optind; */ |
306 | /* argv += optind; */ |
307 | 307 | ||
308 | /* if (argc) */ |
308 | /* if (argc) */ |
309 | /* usage(); */ |
309 | /* usage(); */ |
310 | 310 | ||
311 | fallrate = 1000000 / level; |
- | |
- | 311 | ||
312 | 312 | ||
313 | for (i = 0; i <= 5; i++) { |
313 | for (i = 0; i <= 5; i++) { |
314 | for (j = i+1; j <= 5; j++) { |
314 | for (j = i+1; j <= 5; j++) { |
315 | if (keys[i] == keys[j]) |
315 | if (keys[i] == keys[j]) |
316 | errx(1, "duplicate command keys specified."); |
316 | errx(1, "duplicate command keys specified."); |
Line 329... | Line 329... | ||
329 | key_write[4], key_write[5]); |
329 | key_write[4], key_write[5]); |
330 | 330 | ||
331 | scr_init(); |
331 | scr_init(); |
332 | initscores(); |
332 | initscores(); |
333 | while (tetris_menu(&level)) { |
333 | while (tetris_menu(&level)) { |
334 | - | ||
- | 334 | fallrate = 1000000 / level; |
|
335 | 335 | ||
336 | scr_clear(); |
336 | scr_clear(); |
337 | setup_board(); |
337 | setup_board(); |
338 | 338 | ||
339 | srandomdev(); |
339 | srandomdev(); |
340 | scr_set(); |
340 | scr_set(); |