dont iterate through precip blockmap if there is no precip

This commit is contained in:
Alug committed 2025-01-01 05:06:52 +01:00
1 parent 970657eb74
commit cf32ce90b6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -4436,7 +4436,7 @@ static void HWR_AddPrecipitationSprites(void)
fixed_t drawdist;
// save a little time on invisible weather
if (curWeather == PRECIP_BLANK || curWeather == PRECIP_STORM_NORAIN)
if (curWeather == PRECIP_NONE || curWeather == PRECIP_BLANK || curWeather == PRECIP_STORM_NORAIN)
{
return;
}
+1 -1
View File
@@ -2059,7 +2059,7 @@ void R_AddPrecipitationSprites(void)
precipmobj_t *th, *next;
// no, no infinite draw distance for precipitation. this option at zero is supposed to turn it off
if (drawdist == 0 || curWeather == PRECIP_BLANK || curWeather == PRECIP_STORM_NORAIN)
if (drawdist == 0 || curWeather == PRECIP_NONE || curWeather == PRECIP_BLANK || curWeather == PRECIP_STORM_NORAIN)
{
return;
}