1
0
Fork 0

BlockInfo: float-equal for Clang only

This commit is contained in:
Tiger Wang 2020-11-28 20:49:33 +00:00
parent 815f2aed82
commit 98cf4025ce
1 changed files with 4 additions and 0 deletions

View File

@ -838,13 +838,17 @@ bool cBlockInfo::FullyOccupiesVoxel(const BLOCKTYPE Block)
bool cBlockInfo::IsOneHitDig(const BLOCKTYPE Block)
{
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wfloat-equal"
#endif
// GetHardness returns exactly 0 for one hit break blocks:
return GetHardness(Block) == 0;
#ifdef __clang__
#pragma clang diagnostic pop
#endif
}