cc_draw: remove virtual from position setters

This commit is contained in:
2019-10-27 16:24:47 +01:00
parent 84d3f05c63
commit 689d35db25
2 changed files with 7 additions and 7 deletions

View File

@@ -233,14 +233,14 @@ bool CComponentsItem::isAdded()
void CComponentsItem::setXPos(const int& xpos)
{
CCDraw::setXPos(xpos);
x = xpos;
if (cc_parent)
cc_xr = cc_parent->getRealXPos() + x;
}
void CComponentsItem::setYPos(const int& ypos)
{
CCDraw::setYPos(ypos);
y = ypos;
if (cc_parent)
cc_yr = cc_parent->getRealYPos() + y;
}