修复批量节点的移动

This commit is contained in:
Nomango 2017-10-09 10:42:20 +08:00
parent 054b8183cb
commit a872428496
2 changed files with 6 additions and 6 deletions

View File

@ -132,7 +132,7 @@ void BatchNode::setY(int y)
{
child->move(0, var);
}
Node::setX(y);
Node::setY(y);
}
void BatchNode::setPos(int x, int y)
@ -166,7 +166,7 @@ void BatchNode::move(int x, int y)
{
child->move(x, y);
}
Node::setPos(x, y);
Node::move(x, y);
}
void BatchNode::move(CVector v)
@ -176,5 +176,5 @@ void BatchNode::move(CVector v)
{
child->move(v);
}
Node::setPos(v);
Node::move(v);
}

View File

@ -202,7 +202,7 @@ void BatchSprite::setY(int y)
{
s->move(0, var);
}
RectNode::setX(y);
RectNode::setY(y);
}
void BatchSprite::setPos(int x, int y)
@ -236,7 +236,7 @@ void BatchSprite::move(int x, int y)
{
s->move(x, y);
}
RectNode::setPos(x, y);
RectNode::move(x, y);
}
void BatchSprite::move(CVector v)
@ -246,5 +246,5 @@ void BatchSprite::move(CVector v)
{
s->move(v);
}
RectNode::setPos(v);
RectNode::move(v);
}