X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Fmoving.c;h=4621a1d7a9ccc10617934f9752377ee4bc299798;hb=a0afd227763655ee0ecd7ef5faea92d63d5c5ba6;hp=f9986c47d6eb3cf9ac560e52fbd093aa6a8ecbbe;hpb=d87b83a23fb7b5ac0ba610069a3ce7da8026fd80;p=super-star-trek.git diff --git a/src/moving.c b/src/moving.c index f9986c4..4621a1d 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,17 +231,18 @@ 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 */ prout(_("Lt. Uhura- \"Captain, an important message from the starbase:\"")); - attakreport(0); + attakreport(false); game.iseenit = 1; } } @@ -674,7 +675,7 @@ void setwrp(void) return; } -void atover(int igrab) +void atover(bool igrab) { double power, distreq; @@ -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;