X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=reports.c;h=d4b1f63c4f4c40944a7e15f89b203102ddda1e0c;hb=e7c2a3097e455ce93c62a21832e5c584031468db;hp=29bcba5d061c865e26a101e210a4bb473b3b3eea;hpb=1e2622cf770b7183b813e0dc0095f085dda4419f;p=super-star-trek.git diff --git a/reports.c b/reports.c index 29bcba5..d4b1f63 100644 --- a/reports.c +++ b/reports.c @@ -175,7 +175,7 @@ void rechart(void) /* update the chart in the Enterprise's computer from galaxy data */ { int i, j; - stdamtim = game.state.date; + lastchart = game.state.date; for_quadrants(i) for_quadrants(j) if (game.state.galaxy[i][j].charted) { @@ -190,23 +190,19 @@ void chart(int nn) int i,j; char *cp; chew(); - if (stdamtim != FOREVER && stdamtim != game.state.date && condit == IHDOCKED) { + + if (game.damage[DRADIO] == 0.0) + rechart(); + + if (lastchart < game.state.date && condit == IHDOCKED) { proutn("Spock- \"I revised the Star Chart from the starbase's records.\"\n\r"); - } - if (nn == 0) proutn(" STAR CHART FOR THE KNOWN GALAXY\n\r"); - if (stdamtim != FOREVER) { - if (condit == IHDOCKED) { - /* We are docked, so restore chart from base information */ - rechart(); - } - else if (game.state.date-stdamtim) { - prout("(Last surveillance update %d stardates ago).", - (int)(game.state.date-stdamtim)); - } - } - else if (game.damage[DRADIO] == 0.0) rechart(); + } + if (nn == 0) proutn(" STAR CHART FOR THE KNOWN GALAXY\n\r"); + if (game.state.date > lastchart) + prout("(Last surveillance update %d stardates ago).", + (int)(game.state.date-lastchart)); prout(" 1 2 3 4 5 6 7 8"); for_quadrants(i) { proutn("%d |", i);