[PATCH] Fix precip getting stuck to the ground sometimes

Thanks Alug
This commit is contained in:
NepDisk 2025-06-29 15:58:31 -04:00
parent b2b37df918
commit 47d16f3243

View file

@ -1845,13 +1845,16 @@ void P_SwitchWeather(preciptype_t newWeather)
}
}
precipmobj->type = swap; // proper set the type
precipmobj->info = &mobjinfo[swap];
precipmobj->state = &states[st];
precipmobj->tics = precipmobj->state->tics;
precipmobj->sprite = precipmobj->state->sprite;
precipmobj->frame = precipmobj->state->frame;
precipmobj->momz = FixedMul(-mobjinfo[swap].speed, mapobjectscale);
precipmobj->precipflags &= ~(PCF_INVISIBLE|PCF_FLIP);
precipmobj->precipflags &= ~(PCF_INVISIBLE|PCF_FLIP|PCF_SPLASH); // P_PrecipThinker will add this again if it needs to
if (precipmobj->momz > 0)
{