Rev 1528 | Rev 1590 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1528 | Rev 1538 | ||
---|---|---|---|
Line 342... | Line 342... | ||
342 | 342 | ||
343 | if (showpreview == 0) |
343 | if (showpreview == 0) |
344 | (void)printf("Your score: %d point%s x level %d = %d\n", |
344 | (void)printf("Your score: %d point%s x level %d = %d\n", |
345 | score, score == 1 ? "" : "s", level, score * level); |
345 | score, score == 1 ? "" : "s", level, score * level); |
346 | else { |
346 | else { |
347 | (void)printf("Your score: %d point%s x level %d x preview penalty %0.3f = %d\n", |
347 | /* (void)printf("Your score: %d point%s x level %d x preview penalty %0.3f = %d\n", */ |
348 | score, score == 1 ? "" : "s", level, (double)PRE_PENALTY, |
348 | /* score, score == 1 ? "" : "s", level, (double)PRE_PENALTY, */ |
349 | (int)(score * level * PRE_PENALTY)); |
349 | /* (int)(score * level * PRE_PENALTY)); */ |
350 | score = score * PRE_PENALTY; |
350 | /* score = score * PRE_PENALTY; */ |
351 | } |
351 | } |
352 | savescore(level); |
352 | savescore(level); |
353 | 353 | ||
354 | printf("\nHit RETURN to see high scores, ^C to skip.\n"); |
354 | printf("\nHit RETURN to see high scores, ^C to skip.\n"); |
355 | 355 |