mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-18 10:31:42 +00:00
Merge branch 'next' of http://git.magicalgirl.moe/STJr/SRB2.git into touching_fixes
This commit is contained in:
commit
3c8f5b4629
1 changed files with 4 additions and 0 deletions
|
@ -7699,6 +7699,10 @@ mobj_t *P_SpawnMobj(fixed_t x, fixed_t y, fixed_t z, mobjtype_t type)
|
|||
|
||||
if (mobj->type == MT_UNIDUS)
|
||||
mobj->z -= FixedMul(mobj->info->mass, mobj->scale);
|
||||
|
||||
// defaults onground
|
||||
if (mobj->z + mobj->height == mobj->ceilingz)
|
||||
mobj->eflags |= MFE_ONGROUND;
|
||||
}
|
||||
else
|
||||
mobj->z = z;
|
||||
|
|
Loading…
Reference in a new issue