no need to check for invisible precip here

the early returns indirectly handles things since we dont have custom weather support in kart
This commit is contained in:
Alug committed 2025-01-22 15:43:24 +01:00
1 parent 4b7a2848e5
commit fa9582cc72
2 files changed
+2 -8

No files matched your search

+1 -4
View File
@@ -4509,11 +4509,8 @@ static void HWR_AddPrecipitationSprites(void)
{
for (by = yl; by <= yh; by++)
{
for (th = precipblocklinks[(by * bmapwidth) + bx]; th; th = th->bnext)
for (th = precipblocklinks[(by * bmapwidth) + bx]; th; th = next)
{
if (th->precipflags & PCF_INVISIBLE)
continue;
HWR_ProjectPrecipitationSprite(th);
}
}
+1 -4
View File
@@ -2086,12 +2086,9 @@ void R_AddPrecipitationSprites(void)
{
for (th = precipblocklinks[(by * bmapwidth) + bx]; th; th = next)
{
// Store this beforehand because R_ProjectPrecipitionSprite may free th (see P_PrecipThinker)
// Store this beforehand because R_ProjectPrecipitationSprite may free th (see P_PrecipThinker)
next = th->bnext;
if (th->precipflags & PCF_INVISIBLE)
continue;
R_ProjectPrecipitationSprite(th);
}
}