diff --git a/light/entities.c b/light/entities.c index e3bab386..a6032059 100644 --- a/light/entities.c +++ b/light/entities.c @@ -404,7 +404,7 @@ LoadEntities(const bsp2_t *bsp) normalize_color_format(entity->light.color); } else if (!strcmp(key, "_sunlight")) sunlight.light = atof(com_token); - else if (!strcmp(key, "_sun_mangle")) { + else if (!strcmp(key, "_sunlight_mangle") || !strcmp(key, "_sun_mangle")) { scan_vec3(vec, com_token, "_sun_mangle"); vec_from_mangle(sunvec, vec); VectorNormalize(sunvec); diff --git a/man/light.1 b/man/light.1 index b4063699..1493ee17 100644 --- a/man/light.1 +++ b/man/light.1 @@ -80,7 +80,7 @@ Set the brightness of the sunlight coming from an unseen sun in the sky. Sky brushes (or more accurately bsp leafs with sky contents) will emit sunlight at an angle specified by the "_sun_mangle" key. Default 0. -.IP "\fB""_sun_mangle"" ""x y z""\fP" +.IP "\fB""_sunlight_mangle"" ""x y z""\fP | \fB""_sun_mangle"" ""x y z""\fP" Specifies the direction of sunlight using yaw(x), pitch(y) and roll(z) in degrees. Yaw specifies the angle around the Z-axis from 0 to 359 degrees and pitch specifies the angle from 90 (straight up) to -90 (straight down). Roll