SquaredMap: Fixed array allocation
parent
96a5578bf5
commit
6c988beaad
|
@ -91,7 +91,7 @@ namespace nhengine
|
|||
vcenter,
|
||||
hcenter;
|
||||
|
||||
Vector3[] vertexes = new Vector3[ 18 * width * height ];
|
||||
Vector3[] vertexes = new Vector3[ 12 * width * height ];
|
||||
|
||||
Console.WriteLine("Creating geometry");
|
||||
|
||||
|
@ -149,17 +149,7 @@ namespace nhengine
|
|||
);
|
||||
}
|
||||
}
|
||||
/*
|
||||
Console.WriteLine("Coloring...");
|
||||
|
||||
for (int n = 0; n < vertices.Length / 3;n++){
|
||||
float _h = vertices[(3 * n) + 2] / 512.0f;
|
||||
setColor(
|
||||
n,
|
||||
|
||||
)
|
||||
}
|
||||
*/
|
||||
this.model = new MapModel3D( vertexes );
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue