X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fserver%2Ffield_of_view.c;h=45c90e6c0a6f6dc7da76db9938c529f8124076b2;hb=c89e7df6e7b6b64037b5b964e10a63ad38f86eb5;hp=dc60442e3ff28a835d462f5e3ca877b5c938fa2c;hpb=52baa310d361f5736c675d8222b0479470d9c3c8;p=plomrogue
diff --git a/src/server/field_of_view.c b/src/server/field_of_view.c
index dc60442..45c90e6 100644
--- a/src/server/field_of_view.c
+++ b/src/server/field_of_view.c
@@ -308,7 +308,7 @@ static void add_things_to_map_memory(struct Thing * t_eye)
-extern void update_map_memory(struct Thing * t_eye)
+extern void update_map_memory(struct Thing * t_eye, uint8_t age_map)
{
if (!t_eye->mem_map)
{
@@ -330,7 +330,8 @@ extern void update_map_memory(struct Thing * t_eye)
}
continue;
}
- if ( '0' <= t_eye->mem_depth_map[i] && '9' > t_eye->mem_depth_map[i]
+ if (age_map &&
+ '0' <= t_eye->mem_depth_map[i] && '9' > t_eye->mem_depth_map[i]
&& !(rrand() % (uint16_t) pow(2, t_eye->mem_depth_map[i] - 48)))
{
t_eye->mem_depth_map[i]++;