X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=reports.c;h=cbbf1ffb6c81a13cb20ddf6618442ab57b85de0b;hb=e4a5aba24b9db10449c830ac1dee3f4040caf533;hp=49bc7fe68ead04646b3e9a395888d5a33c22032c;hpb=0a31c313ea8de3a84cfb94d4f431d7502b149598;p=super-star-trek.git diff --git a/reports.c b/reports.c index 49bc7fe..cbbf1ff 100644 --- a/reports.c +++ b/reports.c @@ -188,29 +188,12 @@ void chart(int nn) { for (i = 1; i <= 8; i++) { proutn("%d |", i); for (j = 1; j <= 8; j++) { - char buf[4]; + char buf[4]; proutn(" "); if (game.starch[i][j] < 0) strcpy(buf, ".1."); else if (game.starch[i][j] == 0) strcpy(buf, "..."); - else if (game.starch[i][j] > 999) - if ((i==quadx)&&(j==quady)){ - gotoxy(wherex()-1,wherey()); - if (game.starch[i][i]<2000) - sprintf(buf, "%03d", game.starch[i][j]-1000); - else - strcpy(buf, "***"); - } - else - if (game.starch[i][j]<2000) - sprintf(buf, "%03d", game.starch[i][j]-1000); - else - strcpy(buf, "***"); - else if ((i==quadx)&&(j==quady)){ - gotoxy(wherex()-1,wherey()); - sprintf(buf, "%03d", game.state.galaxy[i][j]); - } else if (game.state.galaxy[i][j]>=1000) strcpy(buf, "***"); else