mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-28 04:00:41 +00:00
Make sure flipped things placed directly on ceiling get MFE_ONGROUND
This fixes ceiling springs apparently flying down with you in various scenarios
This commit is contained in:
parent
694bb73ef7
commit
7c07f39019
1 changed files with 4 additions and 0 deletions
|
@ -7685,6 +7685,10 @@ mobj_t *P_SpawnMobj(fixed_t x, fixed_t y, fixed_t z, mobjtype_t type)
|
||||||
|
|
||||||
if (mobj->type == MT_UNIDUS)
|
if (mobj->type == MT_UNIDUS)
|
||||||
mobj->z -= FixedMul(mobj->info->mass, mobj->scale);
|
mobj->z -= FixedMul(mobj->info->mass, mobj->scale);
|
||||||
|
|
||||||
|
// defaults onground
|
||||||
|
if (mobj->z + mobj->height == mobj->ceilingz)
|
||||||
|
mobj->eflags |= MFE_ONGROUND;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
mobj->z = z;
|
mobj->z = z;
|
||||||
|
|
Loading…
Reference in a new issue