Minorly extend squish time

This commit is contained in:
James R 2021-12-09 18:35:41 -08:00
parent 95bfe07d66
commit c5e3eb7fff

View file

@ -4545,7 +4545,7 @@ void K_DriftDustHandling(mobj_t *spawner)
void K_Squish(mobj_t *mo) void K_Squish(mobj_t *mo)
{ {
const fixed_t maxstretch = 4*FRACUNIT; const fixed_t maxstretch = 4*FRACUNIT;
const fixed_t factor = 3 * mo->height / 2; const fixed_t factor = 5 * mo->height / 4;
const fixed_t threshold = factor / 6; const fixed_t threshold = factor / 6;
const fixed_t old3dspeed = abs(mo->lastmomz); const fixed_t old3dspeed = abs(mo->lastmomz);
@ -4571,7 +4571,7 @@ void K_Squish(mobj_t *mo)
{ {
mo->spritexscale -= mo->spritexscale -=
(mo->spritexscale - FRACUNIT) (mo->spritexscale - FRACUNIT)
/ (mo->spritexscale < FRACUNIT ? 8 : 2); / (mo->spritexscale < FRACUNIT ? 8 : 3);
} }
mo->spriteyscale = mo->spriteyscale =