This commit is contained in:
Alug committed 2024-07-31 07:37:17 +02:00
1 parent 859e08d628
commit 00ea95ee2b
1 file changed
+5 -2
+5 -2
View File
@@ -1773,15 +1773,17 @@ void P_SwitchWeather(INT32 weathernum)
if (purge)
{
thinker_t *think;
thinker_t *next;
precipmobj_t *precipmobj;
for (think = thinkercap.next; think != &thinkercap; think = think->next)
for (think = thinkercap.next; think != &thinkercap; think = next)
{
next = think->next;
if (think->function.acp1 != (actionf_p1)P_NullPrecipThinker)
continue; // not a precipmobj thinker
precipmobj = (precipmobj_t *)think;
P_FreePrecipMobj(precipmobj);
}
}
@@ -1795,6 +1797,7 @@ void P_SwitchWeather(INT32 weathernum)
{
if (think->function.acp1 != (actionf_p1)P_NullPrecipThinker)
continue; // not a precipmobj thinker
precipmobj = (precipmobj_t *)think;
if (swap == PRECIP_RAIN) // Snow To Rain