Game Development Community

Code typo T3D 1.2 duplicated code

by Kenneth Eves · in Torque 3D Professional · 10/03/2012 (5:26 pm) · 1 replies

shapeImage.cpp

addfield is in twice. Second is probably correct since it specifies 1st person view.

addField( "correctMuzzleVector", TypeBool,  Offset(correctMuzzleVector, ShapeBaseImageData),
      "@brief Flag to adjust the aiming vector to the eye's LOS point\n\n"
      "@see ShapeBase::getMuzzleVector()" );

   addField( "correctMuzzleVector", TypeBool,  Offset(correctMuzzleVector, ShapeBaseImageData),
      "@brief Flag to adjust the aiming vector to the eye's LOS point when in 1st person view\n\n"
      "@see ShapeBase::getMuzzleVector()" );

#1
10/05/2012 (5:49 am)
Those calls are identical, the segments in quotes are used to generate documentation output and have no effect on the execution. On the up-side, that text should be visible in Torsion....

That said, yes one of those should be deleted.