Fix SolidMask DensityProvider to return C4M_Vehicle, not C4M_Solid.

Fixes attached movement of objects with increased contact density.
objectmenu
Sven Eberhardt 2016-01-28 22:00:41 -05:00
parent 5a79eef10a
commit 80b8879805
1 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ int32_t C4SolidMask::DensityProvider::GetDensity(int32_t x, int32_t y) const
pix=pSolidMask->_GetPix(x+rSolidMaskData.pForObject->SolidMask.x+rSolidMaskData.MaskPutRect.tx,
y+rSolidMaskData.pForObject->SolidMask.y+rSolidMaskData.MaskPutRect.ty);
if (pix == 0xff)
return C4M_Solid;
return C4M_Vehicle;
else
return 0;
}
@ -232,7 +232,7 @@ int32_t C4SolidMask::DensityProvider::GetDensity(int32_t x, int32_t y) const
if (IsSomeVehicle(pix))
return 0;
else
return C4M_Solid;
return C4M_Vehicle;
}
}