From 927abead50e4f4431e02c835be2dc41dd3e6108b Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 7 Sep 2009 15:31:32 -0400 Subject: [PATCH] Simplify satmap() to avoid compiler warning --- src/lib/subs/satmap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/subs/satmap.c b/src/lib/subs/satmap.c index bac9eecb..94e24254 100644 --- a/src/lib/subs/satmap.c +++ b/src/lib/subs/satmap.c @@ -54,7 +54,6 @@ static char *radbuf; void satmap(int x, int y, int eff, int range, int flags, int type) { - int acc; struct sctstr sect; struct shpstr ship; 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"); prdate(); sathead(); - acc = (flags & P_I) ? 5 : 50; } crackle = count = 0; while (nxtsct(&ns, §)) { @@ -122,7 +120,7 @@ satmap(int x, int y, int eff, int range, int flags, int type) continue; if (flags & P_S) { if (sect.sct_own && sect.sct_own != player->cnum) { - satdisp_sect(§, acc); + satdisp_sect(§, (flags & P_I) ? 5 : 50); ++count; if (opt_HIDDEN) setcont(player->cnum, sect.sct_own, FOUND_FLY);