Fixed clang compilation
This commit is contained in:
parent
ba42166411
commit
c8445cd934
@ -160,21 +160,24 @@ public:
|
|||||||
World->DoWithMobHeadAt(a_BlockX, a_BlockY, a_BlockZ, Callback);
|
World->DoWithMobHeadAt(a_BlockX, a_BlockY, a_BlockZ, Callback);
|
||||||
a_ChunkInterface.SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, a_BlockMeta);
|
a_ChunkInterface.SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, a_BlockMeta);
|
||||||
|
|
||||||
static const Vector3i Coords[] =
|
if (a_BlockMeta == SKULL_TYPE_WITHER)
|
||||||
{
|
{
|
||||||
Vector3i( 0, 0, 0),
|
static const Vector3i Coords[] =
|
||||||
Vector3i( 1, 0, 0),
|
|
||||||
Vector3i(-1, 0, 0),
|
|
||||||
Vector3i( 0, 0, 1),
|
|
||||||
Vector3i( 0, 0, -1),
|
|
||||||
};
|
|
||||||
for (size_t i = 0; i < ARRAYCOUNT(Coords); ++i)
|
|
||||||
{
|
|
||||||
if (TrySpawnWither(a_ChunkInterface, World, a_BlockX + Coords[i].x, a_BlockY, a_BlockZ + Coords[i].z))
|
|
||||||
{
|
{
|
||||||
break;
|
Vector3i( 0, 0, 0),
|
||||||
}
|
Vector3i( 1, 0, 0),
|
||||||
} // for i - Coords[]
|
Vector3i(-1, 0, 0),
|
||||||
|
Vector3i( 0, 0, 1),
|
||||||
|
Vector3i( 0, 0, -1),
|
||||||
|
};
|
||||||
|
for (size_t i = 0; i < ARRAYCOUNT(Coords); ++i)
|
||||||
|
{
|
||||||
|
if (TrySpawnWither(a_ChunkInterface, World, a_BlockX + Coords[i].x, a_BlockY, a_BlockZ + Coords[i].z))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} // for i - Coords[]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ bool cWither::IsArmored(void) const
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool cWither::Initialize(cWorld * a_World) override
|
bool cWither::Initialize(cWorld * a_World)
|
||||||
{
|
{
|
||||||
// Set health before BroadcastSpawnEntity()
|
// Set health before BroadcastSpawnEntity()
|
||||||
SetHealth(GetMaxHealth() / 3);
|
SetHealth(GetMaxHealth() / 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user