From: Christian Heller Date: Sun, 15 Mar 2015 18:35:33 +0000 (+0100) Subject: Necessary C additions to make previous commit build. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/git-favicon.png?a=commitdiff_plain;h=1990a013f8dcab2d7c0908cd6b3060f62c96cdcc;p=plomrogue Necessary C additions to make previous commit build. --- diff --git a/src/server/libplomrogue.c b/src/server/libplomrogue.c index c7fb5ce..ef1e4ce 100644 --- a/src/server/libplomrogue.c +++ b/src/server/libplomrogue.c @@ -620,3 +620,19 @@ extern uint8_t set_cells_passable_on_memmap_to_65534_on_scoremap(char * mem_map) } return 0; } + +extern void update_mem_and_memdepthmap_via_fovmap(char * map, char * fovmap, + char * memdepthmap, + char * memmap) +{ + uint32_t map_size = maplength * maplength; + uint16_t pos; + for (pos = 0; pos < map_size; pos++) + { + if ('v' == fovmap[pos]) + { + memdepthmap[pos] = '0'; + memmap[pos] = map[pos]; + } + } +}