Fix mobjscale

This commit is contained in:
Sally Coolatta 2020-08-18 06:36:43 -04:00
parent 08b76dd52f
commit 8ec67e1ff9

View file

@ -11558,12 +11558,13 @@ static mobj_t *P_SpawnMobjFromMapThing(mapthing_t *mthing, fixed_t x, fixed_t y,
{ {
mobj_t *mobj = NULL; mobj_t *mobj = NULL;
boolean doangle = true; boolean doangle = true;
fixed_t full_scale = FixedMul(mthing->scale, mapobjectscale);
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); P_SetScale(mobj, full_scale);
mobj->destscale = mthing->scale; mobj->destscale = full_scale;
if (!P_SetupSpawnedMapThing(mthing, mobj, &doangle)) if (!P_SetupSpawnedMapThing(mthing, mobj, &doangle))
return mobj; return mobj;