From e9c7491449d1d54996c523f5db22d200d7258d63 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 23 Aug 2008 14:54:42 -0400 Subject: [PATCH] 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. --- src/lib/subs/maps.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/subs/maps.c b/src/lib/subs/maps.c index c8b62051..68e81887 100644 --- a/src/lib/subs/maps.c +++ b/src/lib/subs/maps.c @@ -264,13 +264,7 @@ draw_map(int bmap, char origin, int map_flags, struct nstr_sect *nsp) struct sctstr sect; snxtsct_rewind(nsp); - if (!player->god) { - memset(bitmap, 0, WORLD_SZ() / 8); - bitinit2(nsp, bitmap, player->cnum); - } while (nxtsct(nsp, §) && !player->aborted) { - if (!player->god && !emp_getbit(nsp->x, nsp->y, bitmap)) - continue; if (sect.sct_own == player->cnum) wmap[nsp->dy][nsp->dx] |= 0x80; }