]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/rada.c
Fix lradar to reject land units loaded on land units
[empserver] / src / lib / commands / rada.c
index d21bbebb12e4cc91ba02d71e7fe60a9c9f8559c8..809b7f8c2dedf33fd61b626efe9a3ca398560294 100644 (file)
@@ -102,7 +102,13 @@ radar(int type)
                    continue;
                }
                if (item.land.lnd_ship >= 0) {
-                   pr("Units on ships can't use radar!\n");
+                   pr("%s is stowed on ship #%d, and can't use radar!\n",
+                      prland(&item.land), item.land.lnd_ship);
+                   continue;
+               }
+               if (item.land.lnd_land >= 0) {
+                   pr("%s is stowed on land #%d, and can't use radar!\n",
+                      prland(&item.land), item.land.lnd_land);
                    continue;
                }
                spy = lchr[item.land.lnd_type].l_spy;