]> git.pond.sub.org Git - empserver/commitdiff
(nav_map): Remove unused bitmap and its initialization.
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Jul 2007 07:23:59 +0000 (07:23 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Jul 2007 07:23:59 +0000 (07:23 +0000)
src/lib/commands/navi.c

index db723bc9c2c9e916afc7942a176a10ab10b1833c..491f335a475cd928af4424b48e47aad3857514f6 100644 (file)
@@ -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);