let SOC also use PRECIP_BLANK/ weather = 4
no idea why it couldnt doesent make any sense
This commit is contained in:
1 parent
d7b0726e42
commit
913426bfdb
2 files changed
+4
-4
No files matched your search
+2
-4
@@ -10237,6 +10237,7 @@ void P_SpawnPrecipitation(void)
|
||||
// Not in a sector with visible sky?
|
||||
if (precipsector->sector->ceilingpic != skyflatnum)
|
||||
continue;
|
||||
|
||||
// Exists, but is too small for reasonable precipitation.
|
||||
if (!(precipsector->sector->floorheight <= precipsector->sector->ceilingheight - (32<<FRACBITS)))
|
||||
continue;
|
||||
@@ -10382,10 +10383,7 @@ void P_PrecipitationEffects(void)
|
||||
volume = 255 - (closedist>>(FRACBITS+2));
|
||||
}
|
||||
|
||||
if (volume < 0)
|
||||
volume = 0;
|
||||
else if (volume > 255)
|
||||
volume = 255;
|
||||
volume = CLAMP(volume, 0, 255);
|
||||
|
||||
if (sounds_rain && (!leveltime || leveltime % 80 == 1))
|
||||
S_StartSoundAtVolume(players[displayplayers[0]].mo, sfx_rainin, volume);
|
||||
|
||||
@@ -5308,6 +5308,8 @@ void P_SpawnSpecials(INT32 fromnetsave, boolean reloadinggamestate)
|
||||
curWeather = PRECIP_STORM_NORAIN;
|
||||
else if (mapheaderinfo[gamemap-1]->weather == 6) // storm w/o lightning
|
||||
curWeather = PRECIP_STORM_NOSTRIKES;
|
||||
else if (mapheaderinfo[gamemap-1]->weather == 4) // blank
|
||||
curWeather = PRECIP_BLANK;
|
||||
else
|
||||
curWeather = PRECIP_NONE;
|
||||
|
||||
|
||||
Reference in new issue
Block a user