From e24b608dc6fc33ef360cb9971f4af8ccd39da974 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 28 Jul 2007 07:23:59 +0000 Subject: [PATCH] (nav_map): Remove unused bitmap and its initialization. --- src/lib/commands/navi.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/commands/navi.c b/src/lib/commands/navi.c index db723bc9..491f335a 100644 --- a/src/lib/commands/navi.c +++ b/src/lib/commands/navi.c @@ -285,7 +285,6 @@ nav_map(int x, int y, int show_designations) int i; /* Note this is not re-entrant anyway, so we keep the buffers around */ - static unsigned char *bitmap = NULL; static char *wmapbuf = NULL; static char **wmap = NULL; int changed = 0; @@ -302,14 +301,11 @@ nav_map(int x, int y, int show_designations) wmap = NULL; } } - if (!bitmap) - bitmap = malloc((WORLD_X * WORLD_Y) / 8); - if (!wmapbuf || !wmap || !bitmap) { + if (!wmapbuf || !wmap) { pr("Memory error, tell the deity.\n"); logerror("malloc failed in navi\n"); return RET_FAIL; } - memset(bitmap, 0, (WORLD_X * WORLD_Y) / 8); snxtsct_dist(&ns, x, y, 1); np = getnatp(player->cnum); xyrelrange(np, &ns.range, &range);