From 4a7ce87ac2cef6a0efb3470f227e2eada87bbe71 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 22 Dec 2024 01:44:25 +0100 Subject: [PATCH] do the same for R_ProjectPrecipitationSprite --- src/r_things.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/r_things.c b/src/r_things.c index f6ac7167e..c30d88f62 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1744,6 +1744,9 @@ static void R_ProjectPrecipitationSprite(precipmobj_t *thing) INT32 dist = 1; + if (!thing || thing->subsector == NULL) + return; + if (cv_maxinterpdist.value) dist = R_QuickCamDist(thing->x, thing->y);