X-Git-Url: https://plomlompom.com/repos/?p=plomrogue;a=blobdiff_plain;f=libplomrogue.c;h=c340e38502d66df9f1fe2d35c3e3bc7d3a9866f9;hp=37cc8ef0085d6f4f341c7f9a05a2a27fba10a742;hb=aa19546b06e90c2e6c25a66c4e8c84d84e0c2889;hpb=e8c627dc4dde2d6b60597a34d1594e7ae5b86b8c diff --git a/libplomrogue.c b/libplomrogue.c index 37cc8ef..c340e38 100644 --- a/libplomrogue.c +++ b/libplomrogue.c @@ -635,3 +635,22 @@ extern void update_mem_and_memdepthmap_via_fovmap(char * map, char * fovmap, } } } + +/* USEFUL FOR DEBUGGING +extern void write_score_map() +{ + FILE *f = fopen("score_map", "a"); + + fprintf(f, "\n---------------------------------------------------------\n"); + uint32_t y, x; + for (y = 0; y < maplength; y++) + { + for (x = 0; x < maplength; x++) + { + fprintf(f, "%2X", score_map[y * maplength + x] % 256); + } + fprintf(f, "\n"); + } + fclose(f); +} +*/