Player afterimages are now affected by scaling/slope rolling too

Ghost Mobjs are now affected by Sloperolling too
and the Sprite scaling/stretching functions also now work with it
they look cooler now
This commit is contained in:
alufolie91 committed 2023-08-15 05:54:00 +02:00
1 parent 660b66c980
commit 8c2f85c9e6
1 file changed
+8
+8
View File
@@ -1692,8 +1692,16 @@ mobj_t *P_SpawnGhostMobj(mobj_t *mobj)
ghost->tics = -1;
ghost->frame &= ~FF_TRANSMASK;
ghost->frame |= tr_trans50<<FF_TRANSSHIFT;
ghost->sloperoll = mobj->sloperoll;
ghost->spritexscale = mobj->realxscale;
ghost->spriteyscale = mobj->realyscale;
ghost->spritexoffset = mobj->spritexoffset;
ghost->spriteyoffset = mobj->spriteyoffset;
ghost->fuse = ghost->info->damage;
ghost->skin = mobj->skin;
//ghost->standingslope = mobj->standingslope;
if (mobj->flags2 & MF2_OBJECTFLIP)
ghost->flags |= MF2_OBJECTFLIP;