X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=libplomrogue.c;fp=libplomrogue.c;h=c340e38502d66df9f1fe2d35c3e3bc7d3a9866f9;hb=aa19546b06e90c2e6c25a66c4e8c84d84e0c2889;hp=37cc8ef0085d6f4f341c7f9a05a2a27fba10a742;hpb=e8c627dc4dde2d6b60597a34d1594e7ae5b86b8c;p=plomrogue
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);
+}
+*/