Remove radmapnopr(), use radmapupd() instead

This commit is contained in:
Markus Armbruster 2010-06-20 13:32:03 +02:00
parent db04ba4355
commit 27f22f36bb
3 changed files with 5 additions and 12 deletions

View file

@ -584,7 +584,6 @@ extern int ufindpfx(char *, int);
extern int deltx(struct range *, coord); extern int deltx(struct range *, coord);
extern int delty(struct range *, coord); extern int delty(struct range *, coord);
extern void radmap(int, int, int, int, double); extern void radmap(int, int, int, int, double);
extern void radmapnopr(int, int, int, int, double);
extern void radmapupd(int, int, int, int, int, double); extern void radmapupd(int, int, int, int, int, double);
/* rej.c */ /* rej.c */
extern int setrel(natid, natid, int); extern int setrel(natid, natid, int);

View file

@ -157,11 +157,11 @@ do_unit_move(struct emp_qelem *ulist, int *together,
cp = buf; cp = buf;
} }
if (type == EF_SHIP) { if (type == EF_SHIP) {
radmapnopr(leader->x, leader->y, (int)leader->effic, radmapupd(player->cnum, leader->x, leader->y, leader->effic,
(int)techfact(leader->tech, (int)techfact(leader->tech,
mchr[(int)leader->type].m_vrnge), mchr[leader->type].m_vrnge),
(mchr[(int)leader->type].m_flags & M_SONAR) (mchr[leader->type].m_flags & M_SONAR)
? techfact(leader->tech, 1.0) : 0.0); ? techfact(leader->tech, 1.0) : 0.0);
} }
if (cp == NULL || *cp == '\0') if (cp == NULL || *cp == '\0')
cp = &dirch[DIR_STOP]; cp = &dirch[DIR_STOP];

View file

@ -55,12 +55,6 @@ radmap(int cx, int cy, int eff, int range, double seesub)
radmap2(player->cnum, cx, cy, eff, range, seesub, 1); radmap2(player->cnum, cx, cy, eff, range, seesub, 1);
} }
void
radmapnopr(int cx, int cy, int eff, int range, double seesub)
{
radmap2(player->cnum, cx, cy, eff, range, seesub, 0);
}
void void
radmapupd(int own, int cx, int cy, int eff, int range, double seesub) radmapupd(int own, int cx, int cy, int eff, int range, double seesub)
{ {