This can just be a regular loop now

This commit is contained in:
Eric Fischer 2014-09-23 21:40:23 -07:00
parent a8907362bd
commit ef3d9867fc

10
tile.cc
View File

@ -98,10 +98,10 @@ int draw(struct draw *geom, int n, mapnik::vector::tile_feature *feature) {
int cmd = -1;
int length = 0;
int drew = 0;
int i = 0;
int i;
while (i < n) {
int op = geom[i++].op;
for (i = 0; i < n; i++) {
int op = geom[i].op;
if (op != cmd) {
if (cmd_idx >= 0) {
@ -120,8 +120,8 @@ int draw(struct draw *geom, int n, mapnik::vector::tile_feature *feature) {
}
if (op == VT_MOVETO || op == VT_LINETO) {
long long wwx = geom[i - 1].x;
long long wwy = geom[i - 1].y;
long long wwx = geom[i].x;
long long wwy = geom[i].y;
int dx = wwx - px;
int dy = wwy - py;