more sane thing

This commit is contained in:
Alug committed 2025-01-18 21:22:20 +01:00
1 parent dd84250c8a
commit cedf7beaa1
1 file changed
+2 -7
+2 -7
View File
@@ -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)