]> git.pond.sub.org Git - empserver/commitdiff
load lload: Refuse to load satellites in space
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 12 May 2018 07:50:17 +0000 (09:50 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:41:28 +0000 (10:41 +0100)
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>
src/lib/commands/load.c

index 75e6c36120385a92dc6027cdf933fe847020bace..2e21472775bded128226df06788445876b1fdde0 100644 (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;
 }