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
1 changed files with 3 additions and 3 deletions

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->spawnpoint = mthing;
P_SetScale(mobj, mthing->scale);
mobj->destscale = mthing->scale;
if (!P_SetupSpawnedMapThing(mthing, mobj, &doangle))
return mobj;
if (doangle)
mobj->angle = FixedAngle(mthing->angle << FRACBITS);
P_SetScale(mobj, mthing->scale);
mobj->destscale = mthing->scale;
mthing->mobj = mobj;
// ignore MTF_ flags and return early