X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fmoving.c;h=4908236004714ff29d1b7bd1e126859eea5d6d74;hp=f9986c47d6eb3cf9ac560e52fbd093aa6a8ecbbe;hb=fec5bf04131385b55dc3b0ad9c7d8d245a7d07da;hpb=d87b83a23fb7b5ac0ba610069a3ce7da8026fd80 diff --git a/src/moving.c b/src/moving.c index f9986c4..4908236 100644 --- a/src/moving.c +++ b/src/moving.c @@ -113,7 +113,7 @@ void imove(void) skip(1); prout(_("Entering %s."), cramlc(quadrant, game.quadrant)); game.quad[game.sector.x][game.sector.y] = game.ship; - newqad(0); + newqad(false); if (game.skill>SKILL_NOVICE) attack(0); return; } @@ -214,10 +214,10 @@ no_quad_change: return; } -void dock(int l) +void dock(bool verbose) { chew(); - if (game.condit == IHDOCKED && l) { + if (game.condit == IHDOCKED && verbose) { prout(_("Already docked.")); return; } @@ -231,12 +231,13 @@ void dock(int l) return; } game.condit = IHDOCKED; - if (l) prout(_("Docked.")); + if (verbose) prout(_("Docked.")); game.ididit=1; if (game.energy < game.inenrg) game.energy = game.inenrg; game.shield = game.inshld; game.torps = game.intorps; game.lsupres = game.inlsr; + game.state.crew = FULLCREW; if (!damaged(DRADIO) && (is_scheduled(FCDBAS) || game.isatb == 1) && game.iseenit == 0) { /* get attack report from base */ @@ -823,7 +824,7 @@ void timwrp() postpone(FTBEAM, game.optime); game.damage[DRADIO] += game.optime; } - newqad(0); + newqad(false); events(); /* Stas Sergeev added this -- do pending events */ } @@ -942,7 +943,7 @@ void mayday(void) } /* Since starbase not in quadrant, set up new quadrant */ game.quadrant = game.state.baseq[line]; - newqad(1); + newqad(true); } /* dematerialize starship */ game.quad[game.sector.x][game.sector.y]=IHDOT;