Avoid a nasty bug in planet-name display, and fix another boolean.
[super-star-trek.git] / src / events.c
index 079fea41ef72529ff8d1f6022b4cd187ce2717ec..5f1c6008604957c805d8960105454b9e13d9050b 100644 (file)
@@ -112,6 +112,11 @@ void events(void)
            finish(FDEPLETE);
            return;
        }
+       /* Any crew left alive? */
+       if (game.state.crew <=0) {
+           finish(FCREW);
+           return;
+       }
        /* Is life support adequate? */
        if (damaged(DLIFSUP) && game.condit != IHDOCKED) {
            if (game.lsupres < xtime && game.damage[DLIFSUP] > game.lsupres) {
@@ -233,7 +238,7 @@ void events(void)
                }
                else prout(_("(Shields not currently useable.)"));
            }
-           newqad(0);
+           newqad(false);
            /* Adjust finish time to time of tractor beaming */
            fintim = game.state.date+game.optime;
            attack(0);