(draw_map): Simplify.
This commit is contained in:
parent
a511b8b82b
commit
76cf8811fc
1 changed files with 1 additions and 3 deletions
|
@ -294,7 +294,6 @@ draw_map(int bmap, char origin, int map_flags, struct nstr_sect *nsp)
|
|||
}
|
||||
}
|
||||
if (map_flags & MAP_HIGH) {
|
||||
char *ptr;
|
||||
struct sctstr sect;
|
||||
|
||||
snxtsct_rewind(nsp);
|
||||
|
@ -305,9 +304,8 @@ draw_map(int bmap, char origin, int map_flags, struct nstr_sect *nsp)
|
|||
while (nxtsct(nsp, §) && !player->aborted) {
|
||||
if (!player->god && !emp_getbit(nsp->x, nsp->y, bitmap))
|
||||
continue;
|
||||
ptr = &wmap[nsp->dy][nsp->dx];
|
||||
if (sect.sct_own == player->cnum)
|
||||
*ptr |= 0x80;
|
||||
wmap[nsp->dy][nsp->dx] |= 0x80;
|
||||
}
|
||||
}
|
||||
if (origin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue