Simplify implementation of MAP_HIGH in draw_map()
Own sectors are always visible on the map, so checking their visibility with bitinit2() and emp_getbit() is superflous.
This commit is contained in:
parent
d44ae3ef96
commit
e9c7491449
1 changed files with 0 additions and 6 deletions
|
@ -264,13 +264,7 @@ draw_map(int bmap, char origin, int map_flags, struct nstr_sect *nsp)
|
||||||
struct sctstr sect;
|
struct sctstr sect;
|
||||||
|
|
||||||
snxtsct_rewind(nsp);
|
snxtsct_rewind(nsp);
|
||||||
if (!player->god) {
|
|
||||||
memset(bitmap, 0, WORLD_SZ() / 8);
|
|
||||||
bitinit2(nsp, bitmap, player->cnum);
|
|
||||||
}
|
|
||||||
while (nxtsct(nsp, §) && !player->aborted) {
|
while (nxtsct(nsp, §) && !player->aborted) {
|
||||||
if (!player->god && !emp_getbit(nsp->x, nsp->y, bitmap))
|
|
||||||
continue;
|
|
||||||
if (sect.sct_own == player->cnum)
|
if (sect.sct_own == player->cnum)
|
||||||
wmap[nsp->dy][nsp->dx] |= 0x80;
|
wmap[nsp->dy][nsp->dx] |= 0x80;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue