dont iterate through precip blockmap if there is no precip
This commit is contained in:
1 parent
83d2ade699
commit
4aad4887fd
2 files changed
+2
-2
No files matched your search
@@ -4360,7 +4360,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
@@ -1976,7 +1976,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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user