Merge pull request #208 from honeyhoney/fix_typo_tileobjectmixin
Corrected typo (verticies to vertices)
This commit is contained in:
@@ -119,21 +119,21 @@ public abstract class TileObjectMixin implements TileObject
|
|||||||
// models are orientated north (1024) and there are 2048 angles total
|
// models are orientated north (1024) and there are 2048 angles total
|
||||||
orientation = (orientation + 1024) % 2048;
|
orientation = (orientation + 1024) % 2048;
|
||||||
|
|
||||||
List<Vertex> verticies = model.getVertices();
|
List<Vertex> vertices = model.getVertices();
|
||||||
|
|
||||||
if (orientation != 0)
|
if (orientation != 0)
|
||||||
{
|
{
|
||||||
// rotate verticies
|
// rotate vertices
|
||||||
for (int i = 0; i < verticies.size(); ++i)
|
for (int i = 0; i < vertices.size(); ++i)
|
||||||
{
|
{
|
||||||
Vertex v = verticies.get(i);
|
Vertex v = vertices.get(i);
|
||||||
verticies.set(i, v.rotate(orientation));
|
vertices.set(i, v.rotate(orientation));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Point> points = new ArrayList<Point>();
|
List<Point> points = new ArrayList<Point>();
|
||||||
|
|
||||||
for (Vertex v : verticies)
|
for (Vertex v : vertices)
|
||||||
{
|
{
|
||||||
// Compute canvas location of vertex
|
// Compute canvas location of vertex
|
||||||
Point p = Perspective.worldToCanvas(client,
|
Point p = Perspective.worldToCanvas(client,
|
||||||
|
|||||||
Reference in New Issue
Block a user