Rev 1710 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1710 | Rev 1721 | ||
---|---|---|---|
Line 163... | Line 163... | ||
163 | 163 | ||
164 | gettimeofday(&tv, NULL); |
164 | gettimeofday(&tv, NULL); |
165 | srandom(tv.tv_sec + tv.tv_usec / 100000); |
165 | srandom(tv.tv_sec + tv.tv_usec / 100000); |
166 | } |
166 | } |
167 | 167 | ||
168 | static void tetris_scores(int firstgame) |
- | |
169 | { |
- | |
170 | } |
- | |
171 | - | ||
172 | static void tetris_menu_draw(int level) |
168 | static void tetris_menu_draw(int level) |
173 | { |
169 | { |
174 | clear_screen(); |
170 | clear_screen(); |
175 | moveto(5,10); |
171 | moveto(5,10); |
176 | puts("Tetris\n\n"); |
172 | puts("Tetris\n\n"); |
Line 257... | Line 253... | ||
257 | { |
253 | { |
258 | int pos, c; |
254 | int pos, c; |
259 | char *keys; |
255 | char *keys; |
260 | int level = 2; |
256 | int level = 2; |
261 | char key_write[6][10]; |
257 | char key_write[6][10]; |
262 | const char *errstr; |
- | |
263 | int ch, i, j; |
258 | int i, j; |
264 | 259 | ||
265 | keys = "jkl pq"; |
260 | keys = "jkl pq"; |
266 | 261 | ||
267 | // gid = getgid(); |
262 | // gid = getgid(); |
268 | // egid = getegid(); |
263 | // egid = getegid(); |
Line 448... | Line 443... | ||
448 | while ((i = getchar()) != '\n') |
443 | while ((i = getchar()) != '\n') |
449 | if (i == EOF) |
444 | if (i == EOF) |
450 | break |
445 | break |
451 | */ |
446 | */ |
452 | scr_end(); |
447 | scr_end(); |
- | 448 | ||
453 | exit(0); |
449 | return 0; |
454 | } |
450 | } |
455 | 451 | ||
456 | /* void */ |
452 | /* void */ |
457 | /* onintr(int signo) */ |
453 | /* onintr(int signo) */ |
458 | /* { */ |
454 | /* { */ |