mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Proper sector condition for water particles
This commit is contained in:
parent
0e96aeec84
commit
353ac60407
1 changed files with 25 additions and 1 deletions
26
src/p_mobj.c
26
src/p_mobj.c
|
|
@ -10677,7 +10677,31 @@ void P_SpawnPrecipitation(void)
|
|||
continue;
|
||||
|
||||
// Not in a sector with visible sky?
|
||||
condition = (precipsector->sector->ceilingpic == skyflatnum);
|
||||
if (precipprops[curWeather].effects & PRECIPFX_WATERPARTICLES)
|
||||
{
|
||||
condition = false;
|
||||
|
||||
if (precipsector->sector->ffloors)
|
||||
{
|
||||
ffloor_t *rover;
|
||||
|
||||
for (rover = precipsector->sector->ffloors; rover; rover = rover->next)
|
||||
{
|
||||
if (!(rover->flags & FF_EXISTS))
|
||||
continue;
|
||||
|
||||
if (!(rover->flags & FF_SWIMMABLE))
|
||||
continue;
|
||||
|
||||
condition = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
condition = (precipsector->sector->ceilingpic == skyflatnum);
|
||||
}
|
||||
|
||||
if (precipsector->sector->flags & SF_INVERTPRECIP)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue