|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
TreeTemplate::TreeTemplate( float propability, const BlockType* zWoodType, const BlockType* zLeaveType, int minHeight, int maxHeight )
|
|
|
- : GenerationTemplate( propability, 0, 1, Framework::Vec3<int>( -3, -3, 0 ), Framework::Vec3<int>( 5, 5, maxHeight ) ),
|
|
|
+ : GenerationTemplate( propability, 0, 1, Framework::Vec3<int>( -2, -2, 0 ), Framework::Vec3<int>( 5, 5, maxHeight ) ),
|
|
|
zWoodType( zWoodType ),
|
|
|
zLeaveType( zLeaveType ),
|
|
|
minHeight( minHeight ),
|
|
@@ -13,7 +13,7 @@ GeneratedStructure* TreeTemplate::generateAt( Framework::Vec3<int> location, Noi
|
|
|
{
|
|
|
double noise = zNoise->getNoise( (double)location.x + 40, (double)location.y + 70, (double)location.z - 20 );
|
|
|
int height = (int)(minHeight + (noise * (maxHeight - minHeight)));
|
|
|
- GeneratedStructure* generated = new GeneratedStructure( dynamic_cast<GenerationTemplate*>(getThis()), location, Framework::Vec3<int>( 5, 5, height ), Framework::Vec3<int>( -3, -3, 0 ) + location );
|
|
|
+ GeneratedStructure* generated = new GeneratedStructure( dynamic_cast<GenerationTemplate*>(getThis()), location, Framework::Vec3<int>( 5, 5, height ), Framework::Vec3<int>( -2, -2, 0 ) + location );
|
|
|
for( int x = 1; x < 4; x++ )
|
|
|
{
|
|
|
for( int y = 1; y < 4; y++ )
|