Added cCuboid:Assign() and cChunkDesc:FloorRelCuboid()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1333 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -24,6 +24,20 @@ static bool DoIntervalsIntersect(int a_Min1, int a_Max1, int a_Min2, int a_Max2)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// cCuboid:
|
||||
|
||||
void cCuboid::Assign(int a_X1, int a_Y1, int a_Z1, int a_X2, int a_Y2, int a_Z2)
|
||||
{
|
||||
p1.x = a_X1;
|
||||
p1.y = a_Y1;
|
||||
p1.z = a_Z1;
|
||||
p2.x = a_X2;
|
||||
p2.y = a_Y2;
|
||||
p2.z = a_Z2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cCuboid::Sort(void)
|
||||
{
|
||||
if (p1.x > p2.x)
|
||||
|
||||
Reference in New Issue
Block a user