]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/work.c
work: Don't let embarked engineers work
[empserver] / src / lib / commands / work.c
index 85a2dfe12bed2304dc3c01964cf05ece9e93947c..545618e6b4bf446ee288087f182854edd7215803 100644 (file)
@@ -67,6 +67,11 @@ work(void)
            continue;
        if (!(lchr[(int)land.lnd_type].l_flags & L_ENGINEER))
            continue;
+       if (land.lnd_ship >= 0 || land.lnd_land >= 0) {
+           pr("%s is on a %s\n",
+              prland(&land), land.lnd_ship >= 0 ? "ship" : "land unit");
+           continue;
+       }
        if (land.lnd_mobil <= 0) {
            pr("%s has no mobility!\n", prland(&land));
            continue;