]> git.pond.sub.org Git - empserver/commitdiff
(carriersatxy): Use `&&' instead of somewhat confusing `&'.
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 1 Mar 2004 14:18:37 +0000 (14:18 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 1 Mar 2004 14:18:37 +0000 (14:18 +0000)
src/lib/subs/list.c

index 4c46460e349ee688fd998e654245c69b8ed1818d..6e6728f2d8e913f135fe33fd5e4f80db1e922273 100644 (file)
@@ -103,7 +103,7 @@ carriersatxy(coord x, coord y, int wantflags, int nowantflags, natid own)
        if (ship.shp_effic < SHIP_MINEFF || ship.shp_own == 0)
            continue;
        allied = (getrel(getnatp(ship.shp_own), own) == ALLIED);
-       if ((ship.shp_own != own) & !allied)
+       if ((ship.shp_own != own) && !allied)
            continue;
        mp = &mchr[(int)ship.shp_type];
        if (wantflags) {