]> git.pond.sub.org Git - empserver/commitdiff
(launch_sat): Incorrectly assumed that plane_mob_max is 127 when
authorRon Koenderink <rkoenderink@yahoo.ca>
Mon, 18 Jul 2005 23:52:30 +0000 (23:52 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Mon, 18 Jul 2005 23:52:30 +0000 (23:52 +0000)
calculating when the satellite will be ready for use.

src/lib/commands/laun.c

index c7da7db70bc2438ffe8822cf501eb22f1390e03b..44f1285779a7ef9fcbf40643d023401a97243b12 100644 (file)
@@ -435,6 +435,6 @@ launch_sat(struct plnstr *pp, int sublaunch)
     pp->pln_flags |= PLN_LAUNCHED;
     pp->pln_mobil = (pp->pln_mobil > dist) ? (pp->pln_mobil - dist) : 0;
     putplane(pp->pln_uid, pp);
-    pr(", will be ready for use in %d time units\n", 127 - pp->pln_mobil);
+    pr(", will be ready for use in %d time units\n", plane_mob_max - pp->pln_mobil);
     return -1;
 }