From 1990a013f8dcab2d7c0908cd6b3060f62c96cdcc Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 15 Mar 2015 19:35:33 +0100
Subject: [PATCH] Necessary C additions to make previous commit build.

---
 src/server/libplomrogue.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

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];
+        }
+    }
+}
-- 
2.30.2