Clouds: use consistent scale

This commit is contained in:
James R 2024-01-11 14:06:49 -08:00
parent 77e85e08ea
commit f8bd706878

View file

@ -42,21 +42,15 @@ void Obj_CloudSpawn(mobj_t *mobj)
return; return;
} }
if (mobj->type != MT_AGZ_CLOUDCLUSTER)
{
mobj->destscale = mapobjectscale * 4; mobj->destscale = mapobjectscale * 4;
P_SetScale(mobj, mobj->destscale); P_SetScale(mobj, mobj->destscale);
}
mobj_t *cloud = P_SpawnMobj(mobj->x, mobj->y, mobj->z, cloudtype); mobj_t *cloud = P_SpawnMobj(mobj->x, mobj->y, mobj->z, cloudtype);
angle_t ang = mobj->angle; angle_t ang = mobj->angle;
UINT8 dist = 128; UINT8 dist = 128;
if (cloudtype == MT_AGZ_CLOUD)
{
cloud->destscale = cloud->scale * 2; cloud->destscale = cloud->scale * 2;
P_SetScale(cloud, cloud->destscale); P_SetScale(cloud, cloud->destscale);
}
for (UINT8 i = 0; i < 4; i++) for (UINT8 i = 0; i < 4; i++)
{ {
@ -65,10 +59,11 @@ void Obj_CloudSpawn(mobj_t *mobj)
cloud = P_SpawnMobj(x, y, mobj->z, cloudtype); cloud = P_SpawnMobj(x, y, mobj->z, cloudtype);
if (cloudtype == MT_AGZ_CLOUD)
{
cloud->destscale = cloud->scale * 2; cloud->destscale = cloud->scale * 2;
P_SetScale(cloud, cloud->destscale); P_SetScale(cloud, cloud->destscale);
if (cloudtype == MT_AGZ_CLOUD)
{
cloud->frame = P_RandomRange(PR_DECORATION, 0, 3); cloud->frame = P_RandomRange(PR_DECORATION, 0, 3);
} }