mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
Merge pull request #656 from mogemimi/fix-variable-shadowing
[spine-c] Prevent variable shadowing warnings
This commit is contained in:
commit
0983d42c3d
@ -71,7 +71,7 @@ void spVertexAttachment_computeWorldVertices1 (spVertexAttachment* self, int sta
|
||||
worldVertices[w + 1] = vx * bone->c + vy * bone->d + y;
|
||||
}
|
||||
} else {
|
||||
int v = 0, skip = 0, i, w, b, n;
|
||||
int v = 0, skip = 0, i;
|
||||
spBone** skeletonBones;
|
||||
for (i = 0; i < start; i += 2) {
|
||||
int n = bones[v];
|
||||
@ -80,9 +80,10 @@ void spVertexAttachment_computeWorldVertices1 (spVertexAttachment* self, int sta
|
||||
}
|
||||
skeletonBones = skeleton->bones;
|
||||
if (deformLength == 0) {
|
||||
int w, b;
|
||||
for (w = offset, b = skip * 3; w < count; w += 2) {
|
||||
float wx = x, wy = y;
|
||||
n = bones[v++];
|
||||
int n = bones[v++];
|
||||
n += v;
|
||||
for (; v < n; v++, b += 3) {
|
||||
spBone* bone = skeletonBones[bones[v]];
|
||||
@ -94,10 +95,10 @@ void spVertexAttachment_computeWorldVertices1 (spVertexAttachment* self, int sta
|
||||
worldVertices[w + 1] = wy;
|
||||
}
|
||||
} else {
|
||||
int w, b, f, n;
|
||||
int w, b, f;
|
||||
for (w = offset, b = skip * 3, f = skip << 1; w < count; w += 2) {
|
||||
float wx = x, wy = y;
|
||||
n = bones[v++];
|
||||
int n = bones[v++];
|
||||
n += v;
|
||||
for (; v < n; v++, b += 3, f += 2) {
|
||||
spBone* bone = skeletonBones[bones[v]];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user