Remove radmapnopr(), use radmapupd() instead
This commit is contained in:
parent
db04ba4355
commit
27f22f36bb
3 changed files with 5 additions and 12 deletions
|
@ -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);
|
||||||
|
|
|
@ -157,10 +157,10 @@ 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')
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue