aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-05-20 15:52:18 -0400
committerB. Watson <yalhcru@gmail.com>2021-05-20 15:52:18 -0400
commitc3674c25db53023c65864894bd1b9488e070e1f4 (patch)
tree54ffeda7603163806550026a11b97da5198537c3
parent41bbac55209e4cf6481937a2ffdfc39997b5572a (diff)
downloadtaipan-c3674c25db53023c65864894bd1b9488e070e1f4.tar.gz
Save 2 more bytes, now 8969
-rw-r--r--taipan.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/taipan.c b/taipan.c
index 2c9dbb8..70996e8 100644
--- a/taipan.c
+++ b/taipan.c
@@ -1989,6 +1989,7 @@ const char const *score_desc[] = {
};
void final_stats(void) {
+ char i, unrated = 1;
int years = year - 1860;
#ifdef BIGNUM
@@ -2093,18 +2094,15 @@ void final_stats(void) {
crlf();
cprint_pipe();
- {
- char i, unrated = 1;
- for(i = 0; i < 5; i++) {
- if(unrated && score >= score_lim[i]) {
- unrated = 0;
- rvs_on();
- }
- print_msg(score_msg[i]);
- rvs_off();
- gotox(16);
- cputs(score_desc[i]);
+ for(i = 0; i < 5; i++) {
+ if(unrated && score >= score_lim[i]) {
+ unrated = 0;
+ rvs_on();
}
+ print_msg(score_msg[i]);
+ rvs_off();
+ gotox(16);
+ cputs(score_desc[i]);
}
cputc(26); // lower left corner