refactoring

This commit is contained in:
Gered 2013-10-20 12:03:39 -04:00
parent 70d9ce0c89
commit 1514bddf14

View file

@ -141,11 +141,7 @@ public class TileMap extends TileContainer implements Disposable {
public void updateVertices() { public void updateVertices() {
for (int i = 0; i < chunks.length; ++i) for (int i = 0; i < chunks.length; ++i)
updateChunkVertices(chunks[i]); chunks[i].updateVertices(vertexGenerator);
}
private void updateChunkVertices(TileChunk chunk) {
chunk.updateVertices(vertexGenerator);
} }
public void updateLighting() { public void updateLighting() {