> Do this:
> if (_originalGen<hit._originalGen) return true;
> else if (_originalGen==hit._originalGen) return true;
> else return false;
>
> Will this do what I expect?
It looks like you need to do this:
bool operator < (const GenHit& hit) const
{
if (_originalGen<hit._originalGen) return true;
if (_originalGen==hit._originalGen) return
_ratio<hit._ratio;
return false;
}
John Donovan
Sony Computer Entertainment Europe
http://www.scee.com
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
[EMAIL PROTECTED]
This footnote also confirms that this email message has been checked
for all known viruses.
**********************************************************************
Sony Computer Entertainment Europe
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/