mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 01:01:45 +00:00
Actually do the thing
This commit is contained in:
parent
fdee3a2b7f
commit
2033b77b46
1 changed files with 10 additions and 0 deletions
10
src/p_user.c
10
src/p_user.c
|
@ -2036,12 +2036,22 @@ mobj_t *P_SpawnGhostMobj(mobj_t *mobj)
|
||||||
|
|
||||||
ghost->angle = (mobj->player ? mobj->player->drawangle : mobj->angle);
|
ghost->angle = (mobj->player ? mobj->player->drawangle : mobj->angle);
|
||||||
ghost->rollangle = mobj->rollangle;
|
ghost->rollangle = mobj->rollangle;
|
||||||
|
|
||||||
ghost->sprite = mobj->sprite;
|
ghost->sprite = mobj->sprite;
|
||||||
ghost->sprite2 = mobj->sprite2;
|
ghost->sprite2 = mobj->sprite2;
|
||||||
ghost->frame = mobj->frame;
|
ghost->frame = mobj->frame;
|
||||||
ghost->tics = -1;
|
ghost->tics = -1;
|
||||||
ghost->frame &= ~FF_TRANSMASK;
|
ghost->frame &= ~FF_TRANSMASK;
|
||||||
ghost->frame |= tr_trans50<<FF_TRANSSHIFT;
|
ghost->frame |= tr_trans50<<FF_TRANSSHIFT;
|
||||||
|
|
||||||
|
ghost->renderflags = mobj->renderflags;
|
||||||
|
ghost->blendmode = mobj->blendmode;
|
||||||
|
|
||||||
|
ghost->spritexscale = mobj->spritexscale;
|
||||||
|
ghost->spriteyscale = mobj->spriteyscale;
|
||||||
|
ghost->spritexoffset = mobj->spritexoffset;
|
||||||
|
ghost->spriteyoffset = mobj->spriteyoffset;
|
||||||
|
|
||||||
ghost->fuse = ghost->info->damage;
|
ghost->fuse = ghost->info->damage;
|
||||||
ghost->skin = mobj->skin;
|
ghost->skin = mobj->skin;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue