mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 13:21:10 +00:00
...Welp, I mixed up my commit names :V
THIS commit's the MT_FIREDITEM fix, the LAST commit was me making sure the size of translationtablecache was correct.
This commit is contained in:
parent
576617ec71
commit
2789e76683
1 changed files with 15 additions and 14 deletions
29
src/p_mobj.c
29
src/p_mobj.c
|
@ -7210,23 +7210,24 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MT_FIREDITEM:
|
case MT_FIREDITEM:
|
||||||
{
|
if (mobj->target && !P_MobjWasRemoved(mobj->target))
|
||||||
fixed_t x, y, z;
|
|
||||||
if (mobj->movecount)
|
|
||||||
{
|
{
|
||||||
x = mobj->target->x + P_ReturnThrustX(mobj->target, mobj->target->angle + mobj->movedir, mobj->target->radius + mobj->radius);
|
fixed_t x, y, z;
|
||||||
y = mobj->target->y + P_ReturnThrustY(mobj->target, mobj->target->angle + mobj->movedir, mobj->target->radius + mobj->radius);
|
if (mobj->movecount)
|
||||||
z = mobj->target->z + mobj->target->height/3;
|
{
|
||||||
|
x = mobj->target->x + P_ReturnThrustX(mobj->target, mobj->target->angle + mobj->movedir, mobj->target->radius + mobj->radius);
|
||||||
|
y = mobj->target->y + P_ReturnThrustY(mobj->target, mobj->target->angle + mobj->movedir, mobj->target->radius + mobj->radius);
|
||||||
|
z = mobj->target->z + mobj->target->height/3;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
x = mobj->target->x;
|
||||||
|
y = mobj->target->y;
|
||||||
|
z = mobj->target->z + 80*(mapheaderinfo[gamemap-1]->mobj_scale);
|
||||||
|
}
|
||||||
|
P_TeleportMove(mobj, x, y, z);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
x = mobj->target->x;
|
|
||||||
y = mobj->target->y;
|
|
||||||
z = mobj->target->z + 80*(mapheaderinfo[gamemap-1]->mobj_scale);
|
|
||||||
}
|
|
||||||
P_TeleportMove(mobj, x, y, z);
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
if (mobj->fuse)
|
if (mobj->fuse)
|
||||||
{ // Scenery object fuse! Very basic!
|
{ // Scenery object fuse! Very basic!
|
||||||
|
|
Loading…
Reference in a new issue