From: sparky4 Date: Thu, 16 Feb 2017 18:47:53 +0000 (-0600) Subject: i need to migrate to the memory manager stuff sometime X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=7031d5f155ecad6c38b9ea4c256d31417ced6839;p=16.git i need to migrate to the memory manager stuff sometime --- diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index 12d8991c..5f7ae115 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -502,9 +502,9 @@ sword chkmap(map_t *map, word q) //initiate a null map! map->width=MAPW;///2; map->height=MAPH;///2; -// map->layerdata[0].data = malloc(((map->width*map->height)+1)*sizeof(byte)); +// map->layerdata[0].data = fmfaflflfofcf(((map->width*map->height)+1)*sizeof(byte)); map->layerdata[0].data = &x; - map->tiles = malloc(sizeof(tiles_t)); + //map->tiles = fmfafflflfofc(sizeof(tiles_t)); //fix this to be far~ // bp = bitmapLoadPcx("data/ed.pcx"); // map->tiles->data = &bp; diff --git a/src/lib/scroll16.h b/src/lib/scroll16.h index 45105a27..a749d7f9 100755 --- a/src/lib/scroll16.h +++ b/src/lib/scroll16.h @@ -97,7 +97,6 @@ extern boolean pagenorendermap, pagedelayrendermap; extern char global_temp_status_text[512]; extern char global_temp_status_text2[512]; -//map_t allocMap(int w, int h); void initMap(map_t *map); void ZC_walk(map_view_t *pip, player_t *player, word pn); void ZC_panPageManual(map_view_t *pip, player_t *player, word pn);