Update p_user.c

This commit is contained in:
Radicalicious 2021-06-20 21:01:40 -04:00
parent a6ab670294
commit 4129140b4a

View file

@ -2077,7 +2077,7 @@ void P_SpawnThokMobj(player_t *player)
mobj = P_SpawnGhostMobj(player->mo); // virtually does everything here for us
else if (type == MT_THOKEFFECT) // Thok boom effect for Sonic
{
mobj = P_SpawnMobjFromMobj(player->mo, 0, 0, FRACUNIT * 24, type);
mobj = P_SpawnMobjFromMobj(player->mo, 0, 0, FixedDiv(player->mo->height, player->mo->scale)*3/4, type);
mobj->angle = player->mo->angle + ANGLE_90;
mobj->fuse = 7;
mobj->scale = player->mo->scale / 3;