X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=moving.c;h=d1f5bafaea108c1396b6d5fd2ae2b539ab3f34f2;hb=942f187b68be75931f4bd35015d74d284ef802c4;hp=2fdefb66d5cbab249519967b2e31c4cb5144e069;hpb=48763357ef69f0b711fc332b13e2170ab914d881;p=super-star-trek.git diff --git a/moving.c b/moving.c index 2fdefb6..d1f5baf 100644 --- a/moving.c +++ b/moving.c @@ -500,10 +500,11 @@ void warp(int i) { prout("We can't do it, Captain. We haven't the energy."); } else { - proutn("We haven't the energy, but we could do it at warp "); - crami(iwarp, 1); - if (shldup) - prout(",\nif you'll lower the shields."); + proutn("We haven't the energy, but we could do it at warp %d", iwarp); + if (shldup) { + prout(","); + prout("if you'll lower the shields."); + } else prout("."); } @@ -764,8 +765,8 @@ void timwrp() { /* Make sure Galileo is consistant -- Snapshot may have been taken when on planet, which would give us two Galileos! */ gotit = 0; - for (l = 1; l <= inplan; l++) { - if (game.state.plnets[l].known == 2) { + for (l = 0; l < inplan; l++) { + if (game.state.plnets[l].known == shuttle_down) { gotit = 1; if (iscraft==1 && ship==IHE) { prout("Checkov- \"Security reports the Galileo has disappeared, Sir!"); @@ -837,8 +838,7 @@ void probe(void) { if (key == IHEOL) { /* slow mode, so let Kirk know how many probes there are left */ - crami(nprobes,1); - prout(nprobes==1 ? " probe left." : " probes left."); + prout(nprobes==1 ? "%d probe left." : "%d probes left.", nprobes); proutn("Are you sure you want to fire a probe? "); if (ja()==0) return; }