mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Those are ints, not floats.
This commit is contained in:
parent
e9308e40ed
commit
f1da30f285
1 changed files with 3 additions and 3 deletions
|
|
@ -2816,11 +2816,11 @@ DefineConsoleMethod( GuiControl, setExtent, void, ( const char* extOrX, const ch
|
||||||
{
|
{
|
||||||
Point2I extent;
|
Point2I extent;
|
||||||
if(!dStrIsEmpty(extOrX) && dStrIsEmpty(y))
|
if(!dStrIsEmpty(extOrX) && dStrIsEmpty(y))
|
||||||
dSscanf(extOrX, "%f %f", &extent.x, &extent.y);
|
dSscanf(extOrX, "%d %d", &extent.x, &extent.y);
|
||||||
else if(!dStrIsEmpty(extOrX) && !dStrIsEmpty(y))
|
else if(!dStrIsEmpty(extOrX) && !dStrIsEmpty(y))
|
||||||
{
|
{
|
||||||
extent.x = dAtof(extOrX);
|
extent.x = dAtoi(extOrX);
|
||||||
extent.y = dAtof(y);
|
extent.y = dAtoi(y);
|
||||||
}
|
}
|
||||||
object->setExtent( extent );
|
object->setExtent( extent );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue