mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 20:40:35 +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;
|
||||
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))
|
||||
{
|
||||
extent.x = dAtof(extOrX);
|
||||
extent.y = dAtof(y);
|
||||
extent.x = dAtoi(extOrX);
|
||||
extent.y = dAtoi(y);
|
||||
}
|
||||
object->setExtent( extent );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue