(launch_sat): Incorrectly assumed that plane_mob_max is 127 when
calculating when the satellite will be ready for use.
This commit is contained in:
parent
eba5db4bf0
commit
e332ff5fcc
1 changed files with 1 additions and 1 deletions
|
@ -435,6 +435,6 @@ launch_sat(struct plnstr *pp, int sublaunch)
|
||||||
pp->pln_flags |= PLN_LAUNCHED;
|
pp->pln_flags |= PLN_LAUNCHED;
|
||||||
pp->pln_mobil = (pp->pln_mobil > dist) ? (pp->pln_mobil - dist) : 0;
|
pp->pln_mobil = (pp->pln_mobil > dist) ? (pp->pln_mobil - dist) : 0;
|
||||||
putplane(pp->pln_uid, pp);
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue