Simplify satmap() to avoid compiler warning
This commit is contained in:
parent
e5a43ebe26
commit
927abead50
1 changed files with 1 additions and 3 deletions
|
@ -54,7 +54,6 @@ static char *radbuf;
|
||||||
void
|
void
|
||||||
satmap(int x, int y, int eff, int range, int flags, int type)
|
satmap(int x, int y, int eff, int range, int flags, int type)
|
||||||
{
|
{
|
||||||
int acc;
|
|
||||||
struct sctstr sect;
|
struct sctstr sect;
|
||||||
struct shpstr ship;
|
struct shpstr ship;
|
||||||
struct lndstr land;
|
struct lndstr land;
|
||||||
|
@ -112,7 +111,6 @@ satmap(int x, int y, int eff, int range, int flags, int type)
|
||||||
pr("Satellite sector report\n");
|
pr("Satellite sector report\n");
|
||||||
prdate();
|
prdate();
|
||||||
sathead();
|
sathead();
|
||||||
acc = (flags & P_I) ? 5 : 50;
|
|
||||||
}
|
}
|
||||||
crackle = count = 0;
|
crackle = count = 0;
|
||||||
while (nxtsct(&ns, §)) {
|
while (nxtsct(&ns, §)) {
|
||||||
|
@ -122,7 +120,7 @@ satmap(int x, int y, int eff, int range, int flags, int type)
|
||||||
continue;
|
continue;
|
||||||
if (flags & P_S) {
|
if (flags & P_S) {
|
||||||
if (sect.sct_own && sect.sct_own != player->cnum) {
|
if (sect.sct_own && sect.sct_own != player->cnum) {
|
||||||
satdisp_sect(§, acc);
|
satdisp_sect(§, (flags & P_I) ? 5 : 50);
|
||||||
++count;
|
++count;
|
||||||
if (opt_HIDDEN)
|
if (opt_HIDDEN)
|
||||||
setcont(player->cnum, sect.sct_own, FOUND_FLY);
|
setcont(player->cnum, sect.sct_own, FOUND_FLY);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue