Generator: Fixed missing hitbox assignment.
This had caused village houses to generate too close to each other.
This commit is contained in:
parent
be27992a07
commit
60800655c8
@ -146,6 +146,9 @@ public:
|
|||||||
/** Sets the flag whether the lowest layer of the prefab should be repeated downwards until it hits a solid block. */
|
/** Sets the flag whether the lowest layer of the prefab should be repeated downwards until it hits a solid block. */
|
||||||
void SetExtendFloor(bool a_ShouldExtendFloor) { m_ShouldExtendFloor = a_ShouldExtendFloor; }
|
void SetExtendFloor(bool a_ShouldExtendFloor) { m_ShouldExtendFloor = a_ShouldExtendFloor; }
|
||||||
|
|
||||||
|
/** Sets the internal hitbox to the specified value. */
|
||||||
|
void SetHitBox(const cCuboid & a_HitBox) { m_HitBox = a_HitBox; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** Packs complete definition of a single block, for per-letter assignment. */
|
/** Packs complete definition of a single block, for per-letter assignment. */
|
||||||
struct sBlockTypeDef
|
struct sBlockTypeDef
|
||||||
|
@ -287,6 +287,7 @@ bool cPrefabPiecePool::LoadCubesetPieceVer1(const AString & a_FileName, cLuaStat
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
prefab->SetHitBox(Hitbox);
|
||||||
|
|
||||||
// Read the connectors
|
// Read the connectors
|
||||||
if (!ReadConnectorsCubesetVer1(a_FileName, a_LuaState, PieceName, prefab.get(), a_LogWarnings))
|
if (!ReadConnectorsCubesetVer1(a_FileName, a_LuaState, PieceName, prefab.get(), a_LogWarnings))
|
||||||
|
Loading…
Reference in New Issue
Block a user