From cedf7beaa1e522e984d7607bd6d8e6e04d0ee6ed Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 18 Jan 2025 21:22:20 +0100 Subject: [PATCH] more sane thing --- src/p_mobj.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 954f9dcbc..fde075203 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -10324,19 +10324,14 @@ void P_SpawnPrecipitation(void) return; const fixed_t precipmoscale = (cv_mobjscaleprecip.value ? mapobjectscale : FRACUNIT); + const INT32 density = (cv_lessprecip.value ? 2 : 1); // Use the blockmap to narrow down our placing patterns - for (i = 0; i < bmapwidth*bmapheight; ++i) + for (i = 0; i < bmapwidth*bmapheight; i += density) { basex = bmaporgx + (i % bmapwidth) * MAPBLOCKSIZE; basey = bmaporgy + (i / bmapwidth) * MAPBLOCKSIZE; - if (cv_lessprecip.value) - { - basex = 3*basex/2; - basey = 3*basey/2; - } - // If mobjscale < FRACUNIT, each blockmap cell covers // more area so spawn more precipitation in that area. for (j = 0; j < FRACUNIT; j += precipmoscale)