cleanup: remove redundant ipos
This commit is contained in:
parent
bfadf66053
commit
e80eae230c
@ -162,19 +162,16 @@ public final class LineTexLayer extends RenderElement {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ipos = pos;
|
int end = pos + length;
|
||||||
|
float x = points[pos++] * COORD_SCALE;
|
||||||
float x = points[ipos++] * COORD_SCALE;
|
float y = points[pos++] * COORD_SCALE;
|
||||||
float y = points[ipos++] * COORD_SCALE;
|
|
||||||
|
|
||||||
/* randomize a bit */
|
/* randomize a bit */
|
||||||
float lineLength = (x * x + y * y) % 80;
|
float lineLength = (x * x + y * y) % 80;
|
||||||
|
|
||||||
int end = pos + length;
|
while (pos < end) {
|
||||||
|
float nx = points[pos++] * COORD_SCALE;
|
||||||
for (; ipos < end;) {
|
float ny = points[pos++] * COORD_SCALE;
|
||||||
float nx = points[ipos++] * COORD_SCALE;
|
|
||||||
float ny = points[ipos++] * COORD_SCALE;
|
|
||||||
|
|
||||||
/* Calculate triangle corners for the given width */
|
/* Calculate triangle corners for the given width */
|
||||||
float vx = nx - x;
|
float vx = nx - x;
|
||||||
@ -235,8 +232,6 @@ public final class LineTexLayer extends RenderElement {
|
|||||||
oddQuads++;
|
oddQuads++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pos += length;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
evenSegment = even;
|
evenSegment = even;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user