Decomp fix for CSimpleShadow

This commit is contained in:
Henrique Gemignani Passos Lima 2022-11-17 12:06:40 +02:00
parent 0e8245500a
commit 78bdc35f60
No known key found for this signature in database
GPG Key ID: E224F951761145F8
2 changed files with 4 additions and 2 deletions

View File

@ -67,8 +67,10 @@ void CSimpleShadow::Calculate(const zeus::CAABox& aabb, const zeus::CTransform&
}
if (height > 0.1f + halfHeight) {
TUniqueId cid = kInvalidUniqueId;
EntityList nearList;
mgr.BuildNearList(nearList, pos, zeus::skDown, x40_maxObjHeight, CMaterialFilter::MakeInclude(CMaterialList(EMaterialTypes::Floor)), nullptr);
TUniqueId cid = kInvalidUniqueId;
CRayCastResult resD = CGameCollision::RayDynamicIntersection(mgr, cid, pos, zeus::skDown, x40_maxObjHeight,
CMaterialFilter::skPassEverything, nearList);
if (resD.IsValid() && resD.GetT() < height) {

View File

@ -29,7 +29,7 @@ public:
bool Valid() const { return x48_24_collision; }
zeus::CAABox GetMaxShadowBox(const zeus::CAABox& aabb) const;
zeus::CAABox GetBounds() const;
void SetAlwaysCalculateRadius(bool) { x48_25_alwaysCalculateRadius = true; }
void SetAlwaysCalculateRadius(bool b) { x48_25_alwaysCalculateRadius = b; }
float GetMaxObjectHeight() const { return x40_maxObjHeight; }
void SetUserAlpha(float a) { x38_userAlpha = a; }
const zeus::CTransform& GetTransform() const { return x0_xf; }