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:
Markus Armbruster 2008-08-23 14:54:42 -04:00
parent d44ae3ef96
commit e9c7491449

View file

@ -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, &sect) && !player->aborted) { while (nxtsct(nsp, &sect) && !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;
} }