From 55d8b419e2dfca1b67affc6547115f1f630bb05f Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Tue, 27 Sep 2016 17:51:17 +0100 Subject: [PATCH] MI's last few reccomendations fixed. --- src/p_mobj.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 44a701ee9..db80851f3 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -8811,8 +8811,6 @@ void P_SpawnPlayer(INT32 playernum) // the dead body mobj retains the skin through the 'spritedef' override). mobj->skin = &skins[p->skin]; - mobj->radius = FixedMul(skins[p->skin].radius, mobj->destscale); - mobj->health = p->health; p->playerstate = PST_LIVE; @@ -8827,6 +8825,10 @@ void P_SpawnPlayer(INT32 playernum) P_SetScale(mobj, mobj->destscale); P_FlashPal(p, 0, 0); // Resets + // Set bounds accurately. + mobj->radius = FixedMul(skins[p->skin].radius, mobj->scale); + mobj->height = P_GetPlayerHeight(p); + // Spawn with a pity shield if necessary. P_DoPityCheck(p); }