mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 02:39:17 +00:00
Mac build fixes
This commit is contained in:
@@ -114,8 +114,8 @@ bool ValidateCooker(EResourceType ResourceType, bool DumpInvalidFileContents)
|
||||
|
||||
// Start our comparison by making sure the sizes match up
|
||||
const uint kAlignment = (It->Game() >= EGame::Corruption ? 64 : 32);
|
||||
const uint kAlignedOriginalSize = ALIGN( (uint) OriginalData.size(), kAlignment );
|
||||
const uint kAlignedNewSize = ALIGN( (uint) NewData.size(), kAlignment );
|
||||
const uint kAlignedOriginalSize = VAL_ALIGN( (uint) OriginalData.size(), kAlignment );
|
||||
const uint kAlignedNewSize = VAL_ALIGN( (uint) NewData.size(), kAlignment );
|
||||
const char* pkInvalidReason = "";
|
||||
bool IsValid = false;
|
||||
|
||||
|
||||
@@ -195,7 +195,7 @@ public:
|
||||
uint32 ItemSize() const
|
||||
{
|
||||
uint32 ItemAlign = mpItemArchetype->DataAlignment();
|
||||
uint32 ItemSize = ALIGN(mpItemArchetype->DataSize(), ItemAlign);
|
||||
uint32 ItemSize = VAL_ALIGN(mpItemArchetype->DataSize(), ItemAlign);
|
||||
return ItemSize;
|
||||
}
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ void IProperty::Initialize(IProperty* pInParent, CScriptTemplate* pInTemplate, u
|
||||
{
|
||||
ChildOffset += mChildren[ChildIdx-1]->DataSize();
|
||||
}
|
||||
ChildOffset = ALIGN(ChildOffset, pChild->DataAlignment());
|
||||
ChildOffset = VAL_ALIGN(ChildOffset, pChild->DataAlignment());
|
||||
|
||||
// Don't call Initialize on intrinsic children as they have already been initialized.
|
||||
if (!pChild->IsIntrinsic())
|
||||
|
||||
@@ -144,7 +144,7 @@ void CSceneNode::BuildLightList(CGameArea *pArea)
|
||||
SLightEntry(CLight *_pLight, float _Distance)
|
||||
: pLight(_pLight), Distance(_Distance) {}
|
||||
|
||||
bool operator<(const SLightEntry& rkOther) {
|
||||
bool operator<(const SLightEntry& rkOther) const {
|
||||
return (Distance < rkOther.Distance);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user