X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=src%2Flib%2Fcommands%2Fwork.c;h=77ff250a942c0c57ab7c979a2aa3d5a01dc077f6;hp=85a2dfe12bed2304dc3c01964cf05ece9e93947c;hb=e23e4cd73890ff764b68e4062cc589b7a6a1e2d5;hpb=5f3c64c062d9aaf638a595f71a5cb55d89d8520b diff --git a/src/lib/commands/work.c b/src/lib/commands/work.c index 85a2dfe12..77ff250a9 100644 --- a/src/lib/commands/work.c +++ b/src/lib/commands/work.c @@ -27,7 +27,7 @@ * work.c: Implementation of the work command * * Known contributors to this file: - * Markus Armbruster, 2009-2016 + * Markus Armbruster, 2009-2021 */ #include @@ -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;