forked from Mirrors/openclonk
Fixed tree splitting wood output.
parent
e52eac218f
commit
8d1120b9e7
|
@ -132,7 +132,7 @@ func SplitDown()
|
||||||
for (var i = 0 ; i < GetComponent(Chunk_Wood) ; i++)
|
for (var i = 0 ; i < GetComponent(Chunk_Wood) ; i++)
|
||||||
{
|
{
|
||||||
var x = Sin(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 )); // Chunk_Wood is 12 in size, 15 seems about good
|
var x = Sin(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 )); // Chunk_Wood is 12 in size, 15 seems about good
|
||||||
var y = Cos(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 ));
|
var y = Cos(GetR(), -15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 ));
|
||||||
CreateObject(Chunk_Wood, x,y)->SetR(GetR());
|
CreateObject(Chunk_Wood, x,y)->SetR(GetR());
|
||||||
}
|
}
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
|
|
|
@ -64,7 +64,7 @@ func SplitDown()
|
||||||
for (var i = 0 ; i < GetComponent(Chunk_Wood) ; i++)
|
for (var i = 0 ; i < GetComponent(Chunk_Wood) ; i++)
|
||||||
{
|
{
|
||||||
var x = Sin(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 )); // Chunk_Wood is 12 in size, 15 seems about good
|
var x = Sin(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 )); // Chunk_Wood is 12 in size, 15 seems about good
|
||||||
var y = Cos(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 ));
|
var y = Cos(GetR(), -15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 ));
|
||||||
CreateObject(Chunk_Wood, x,y)->SetR(GetR());
|
CreateObject(Chunk_Wood, x,y)->SetR(GetR());
|
||||||
}
|
}
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
|
|
|
@ -136,7 +136,7 @@ func SplitDown()
|
||||||
for (var i = 0 ; i < GetComponent(Chunk_Wood) ; i++)
|
for (var i = 0 ; i < GetComponent(Chunk_Wood) ; i++)
|
||||||
{
|
{
|
||||||
var x = Sin(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 )); // Chunk_Wood is 12 in size, 15 seems about good
|
var x = Sin(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 )); // Chunk_Wood is 12 in size, 15 seems about good
|
||||||
var y = Cos(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 ));
|
var y = Cos(GetR(), -15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 ));
|
||||||
CreateObject(Chunk_Wood, x,y)->SetR(GetR());
|
CreateObject(Chunk_Wood, x,y)->SetR(GetR());
|
||||||
}
|
}
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
|
|
|
@ -43,7 +43,7 @@ func SplitDown()
|
||||||
for (var i = 0 ; i < GetComponent(Chunk_Wood) ; i++)
|
for (var i = 0 ; i < GetComponent(Chunk_Wood) ; i++)
|
||||||
{
|
{
|
||||||
var x = Sin(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 )); // Chunk_Wood is 12 in size, 15 seems about good
|
var x = Sin(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 )); // Chunk_Wood is 12 in size, 15 seems about good
|
||||||
var y = Cos(GetR(), 15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 ));
|
var y = Cos(GetR(), -15 * ( i - GetComponent(Chunk_Wood,nil,nil, GetID())/2 ));
|
||||||
CreateObject(Chunk_Wood, x,y)->SetR(GetR());
|
CreateObject(Chunk_Wood, x,y)->SetR(GetR());
|
||||||
}
|
}
|
||||||
RemoveObject();
|
RemoveObject();
|
||||||
|
|
Loading…
Reference in New Issue