Scale weather momz

This commit is contained in:
James R 2022-06-10 20:40:19 -07:00
parent f1936c83fd
commit f18f316b8e
2 changed files with 3 additions and 3 deletions

View file

@ -3862,7 +3862,7 @@ void P_PrecipThinker(precipmobj_t *mobj)
// Reset to ceiling! // Reset to ceiling!
P_SetPrecipMobjState(mobj, mobj->info->spawnstate); P_SetPrecipMobjState(mobj, mobj->info->spawnstate);
mobj->z = (flip) ? (mobj->floorz) : (mobj->ceilingz); mobj->z = (flip) ? (mobj->floorz) : (mobj->ceilingz);
mobj->momz = -mobj->info->speed; mobj->momz = FixedMul(-mobj->info->speed, mapobjectscale);
mobj->precipflags &= ~PCF_SPLASH; mobj->precipflags &= ~PCF_SPLASH;
R_ResetPrecipitationMobjInterpolationState(mobj); R_ResetPrecipitationMobjInterpolationState(mobj);
} }
@ -10411,7 +10411,7 @@ static precipmobj_t *P_SpawnPrecipMobj(fixed_t x, fixed_t y, fixed_t z, mobjtype
mobj->ceilingrover = NULL; mobj->ceilingrover = NULL;
mobj->z = z; mobj->z = z;
mobj->momz = -info->speed; mobj->momz = FixedMul(-info->speed, mapobjectscale);
if (info->speed < 0) if (info->speed < 0)
{ {

View file

@ -1854,7 +1854,7 @@ void P_SwitchWeather(preciptype_t newWeather)
precipmobj->sprite = precipmobj->state->sprite; precipmobj->sprite = precipmobj->state->sprite;
precipmobj->frame = precipmobj->state->frame; precipmobj->frame = precipmobj->state->frame;
precipmobj->momz = -mobjinfo[swap].speed; precipmobj->momz = FixedMul(-mobjinfo[swap].speed, mapobjectscale);
precipmobj->precipflags &= ~(PCF_INVISIBLE|PCF_FLIP); precipmobj->precipflags &= ~(PCF_INVISIBLE|PCF_FLIP);
if (precipmobj->momz > 0) if (precipmobj->momz > 0)