Move the scale setting code behind the MapthingSpawn hook.

This commit is contained in:
Nev3r 2020-04-19 16:00:57 +02:00
parent 67acb6e498
commit beb42c9499

View file

@ -13077,15 +13077,15 @@ static mobj_t *P_SpawnMobjFromMapThing(mapthing_t *mthing, fixed_t x, fixed_t y,
mobj = P_SpawnMobj(x, y, z, i); mobj = P_SpawnMobj(x, y, z, i);
mobj->spawnpoint = mthing; mobj->spawnpoint = mthing;
P_SetScale(mobj, mthing->scale);
mobj->destscale = mthing->scale;
if (!P_SetupSpawnedMapThing(mthing, mobj, &doangle)) if (!P_SetupSpawnedMapThing(mthing, mobj, &doangle))
return mobj; return mobj;
if (doangle) if (doangle)
mobj->angle = FixedAngle(mthing->angle << FRACBITS); mobj->angle = FixedAngle(mthing->angle << FRACBITS);
P_SetScale(mobj, mthing->scale);
mobj->destscale = mthing->scale;
mthing->mobj = mobj; mthing->mobj = mobj;
// ignore MTF_ flags and return early // ignore MTF_ flags and return early