Minor problem in getControlObject?
by Cameron Tofer · in Torque Game Engine · 03/25/2005 (10:27 am) · 2 replies
This may not be too important and its also in the example game code, but, shouldn't this return -1 instead of 0 if there is no control object?
// gameConnection.cc : 1216
ConsoleMethod( GameConnection, getControlObject, S32, 2, 2, "")
{
argv;
SimObject* cp = object->getControlObject();
return cp? cp->getId(): 0;
}
// gameConnection.cc : 1216
ConsoleMethod( GameConnection, getControlObject, S32, 2, 2, "")
{
argv;
SimObject* cp = object->getControlObject();
return cp? cp->getId(): 0;
}
Associate Kyle Carter