More elimination of FORTAN-style if statements.
[super-star-trek.git] / src / reports.c
index 93a525d8abc0bbb1d706b6bb7fc051955e2965eb..e7c433f213a2f5b2be7266b93f2ed9152d183d28 100644 (file)
@@ -350,7 +350,7 @@ void status(int req)
     RQ(10,
        if (game.options & OPTION_WORLDS) {
            int plnet = game.state.galaxy[game.quadrant.x][game.quadrant.y].planet;
-           if (plnet != NOPLANET && game.state.plnets[plnet].inhabited != UNINHABITED)
+           if (plnet != NOPLANET && game.state.planets[plnet].inhabited != UNINHABITED)
                prstat(_("Major system"), "%s", systnames[plnet]);
            else
                prout(_("Sector is uninhabited"));
@@ -480,7 +480,8 @@ void eta(void)
        proutn(_("Time or arrival date? "));
        if (scan()==IHREAL) {
            ttime = aaitem;
-           if (ttime > game.state.date) ttime -= game.state.date; // Actually a star date
+           if (ttime > game.state.date)
+               ttime -= game.state.date; // Actually a star date
            if (ttime <= 1e-10 ||
                (twarp=(floor(sqrt((10.0*game.dist)/ttime)*10.0)+1.0)/10.0) > 10) {
                prout(_("We'll never make it, sir."));