X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fserver%2Ffield_of_view.c;h=dc60442e3ff28a835d462f5e3ca877b5c938fa2c;hb=a18ffcfc0b1527b5751ff9c76b8bdb7ee181a764;hp=8a162d8020c45579e250c9a6c58a14cc64204fff;hpb=bf396f111317663bba3950e57968af19f2f56a44;p=plomrogue
diff --git a/src/server/field_of_view.c b/src/server/field_of_view.c
index 8a162d8..dc60442 100644
--- a/src/server/field_of_view.c
+++ b/src/server/field_of_view.c
@@ -65,6 +65,12 @@ static uint8_t shade_hex(uint32_t left_angle, uint32_t right_angle,
uint32_t middle_angle, struct shadow_angle ** shadows,
uint16_t pos_in_map, char * fov_map);
+/* To "shadows", add shadow defined by "left_angle" and "right_angle", either as
+ * new entry or as part of an existing shadow (swallowed whole or extending it).
+ */
+static void set_shadow(uint32_t left_angle, uint32_t right_angle,
+ struct shadow_angle ** shadows);
+
/* Free shadow angles list "angles". */
static void free_angles(struct shadow_angle * angles);
@@ -195,9 +201,6 @@ static uint8_t shade_hex(uint32_t left_angle, uint32_t right_angle,
-/* To "shadows", add shadow defined by "left_angle" and "right_angle", either as
- * new entry or as part of an existing shadow (swallowed whole or extending it).
- */
static void set_shadow(uint32_t left_angle, uint32_t right_angle,
struct shadow_angle ** shadows)
{