Game Development Community

Small typo in ShapeBase.cc

by Bruce Wallace · in Torque Game Engine · 04/17/2004 (5:19 pm) · 3 replies

This function really doesn't do much, but since it's still in there..

// return true if can cloak, otherwise the reason why object cannot cloak
ConsoleMethod( ShapeBase, canCloack, const char*, 2, 2, "")
{
   return("true");
}

Should be:

// return true if can cloak, otherwise the reason why object cannot cloak
ConsoleMethod( ShapeBase, canCloak, const char*, 2, 2, "")
{
   return("true");
}

#1
04/17/2004 (5:40 pm)
Haha, that's funny :-) i wonder if that does anything...
#2
04/17/2004 (6:20 pm)
Good find
without this fix when you called ShapeBase.canCloak()
it would be like : error function not found.
a dump() would show you the typo
#3
04/17/2004 (7:12 pm)
Rewrote it to use a bool return type and other things. Checked into HEAD.