Simplify prunits() and prplanes()

Drop redundant conditional.  No functional change.
This commit is contained in:
Markus Armbruster 2008-06-14 18:28:44 +02:00
parent dbd886ae2e
commit c658d1e08d

View file

@ -287,7 +287,6 @@ prunits(int x, int y)
if (!(chance(LND_SPY_DETECT_CHANCE(land.lnd_effic))))
continue;
}
if ((land.lnd_own != player->cnum) && land.lnd_own) {
sprintf(report, "%s (%s) unit in %s: ",
player_relstr(land.lnd_own),
cname(land.lnd_own),
@ -295,7 +294,6 @@ prunits(int x, int y)
intelligence_report(player->cnum, &land, 3, report);
}
}
}
static void
prplanes(int x, int y)
@ -311,7 +309,6 @@ prplanes(int x, int y)
continue;
if (plane.pln_flags & PLN_LAUNCHED)
continue;
if ((plane.pln_own != player->cnum) && plane.pln_own) {
pr("%s (%s) plane in %s: %s\n",
player_relstr(plane.pln_own),
cname(plane.pln_own),
@ -319,7 +316,6 @@ prplanes(int x, int y)
prplane(&plane));
}
}
}
static char *
player_relstr(natid them)