From fdca019a74018fae66d6146fd4e59197874d7314 Mon Sep 17 00:00:00 2001 From: Hannu Hanhi Date: Mon, 21 Sep 2020 23:17:22 +0300 Subject: [PATCH] Fix rain bug introduced by render distance --- src/hardware/hw_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index c3de05b9f..e717220c9 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4199,7 +4199,7 @@ void HWR_AddSprites(sector_t *sec) approx_dist = P_AproxDistance(viewx-precipthing->x, viewy-precipthing->y); - if (approx_dist > limit_dist) + if (approx_dist > precip_limit_dist) continue; HWR_ProjectPrecipitationSprite(precipthing);