load lload: Refuse to load satellites in space

Doesn't affect the stock game, because none of its satellites are
light, let alone x-light.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2018-05-12 09:50:17 +02:00
parent 6ce25bdd4f
commit b109430b8c

View file

@ -386,6 +386,11 @@ plane_loadable(struct plnstr *pp, int noisy)
prplane(pp));
return 0;
}
if (pln_is_in_orbit(pp)) {
if (noisy)
pr("%s is in space\n", prplane(pp));
return 0;
}
return 1;
}