mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Give Landmines a default color
This commit is contained in:
parent
d7be3d3aca
commit
aa7c7df27c
1 changed files with 5 additions and 0 deletions
|
|
@ -6843,6 +6843,11 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
|||
case MT_LANDMINE:
|
||||
mobj->friction = ORIG_FRICTION/4;
|
||||
|
||||
if (mobj->target && mobj->target->player)
|
||||
mobj->color = mobj->target->player->skincolor;
|
||||
else
|
||||
mobj->color = SKINCOLOR_SAPPHIRE;
|
||||
|
||||
if (mobj->momx || mobj->momy || mobj->momz)
|
||||
{
|
||||
mobj_t *ghost = P_SpawnGhostMobj(mobj);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue