1
0

Generator: Fixed missing hitbox assignment.

This had caused village houses to generate too close to each other.
This commit is contained in:
Mattes D 2015-10-05 21:15:08 +02:00
parent be27992a07
commit 60800655c8
2 changed files with 4 additions and 0 deletions

View File

@ -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. */
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:
/** Packs complete definition of a single block, for per-letter assignment. */
struct sBlockTypeDef

View File

@ -287,6 +287,7 @@ bool cPrefabPiecePool::LoadCubesetPieceVer1(const AString & a_FileName, cLuaStat
{
return false;
}
prefab->SetHitBox(Hitbox);
// Read the connectors
if (!ReadConnectorsCubesetVer1(a_FileName, a_LuaState, PieceName, prefab.get(), a_LogWarnings))