Simplify the starchart code.
[super-star-trek.git] / reports.c
index 49bc7fe68ead04646b3e9a395888d5a33c22032c..cbbf1ffb6c81a13cb20ddf6618442ab57b85de0b 100644 (file)
--- 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