Avoid a nasty bug in planet-name display, and fix another boolean.
[super-star-trek.git] / src / moving.c
index f9986c47d6eb3cf9ac560e52fbd093aa6a8ecbbe..4908236004714ff29d1b7bd1e126859eea5d6d74 100644 (file)
@@ -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;