Reallow P_MobjSpawn to change the scale of objects spawned from mapthings
This commit is contained in:
parent
4fcca22343
commit
a65fc9f622
|
@ -13077,8 +13077,8 @@ 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);
|
P_SetScale(mobj, FixedMul(mobj->scale, mthing->scale));
|
||||||
mobj->destscale = mthing->scale;
|
mobj->destscale = FixedMul(mobj->destscale, mthing->scale);
|
||||||
|
|
||||||
if (!P_SetupSpawnedMapThing(mthing, mobj, &doangle))
|
if (!P_SetupSpawnedMapThing(mthing, mobj, &doangle))
|
||||||
return mobj;
|
return mobj;
|
||||||
|
|
Loading…
Reference in New Issue