Simplify automatic bmap update from ship radar

Inline radmap2() into radmapupd() and simplify.  Drop unused parameter
seesub.  Rename to rad_map_set().
This commit is contained in:
Markus Armbruster 2010-06-20 13:43:16 +02:00
parent 27f22f36bb
commit 0d477e5df1
4 changed files with 39 additions and 20 deletions

View file

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