BGE fix: alignToVect() fac parameter clamping should obviously be done the other way round

This commit is contained in:
Benoit Bolsee 2008-08-07 11:25:45 +00:00
parent a1f46e1e32
commit 3adf5dda97

@ -1491,7 +1491,7 @@ PyObject* KX_GameObject::PyAlignAxisToVect(PyObject* self,
if (PyVecTo(pyvect, vect))
{
if (fac<=0.0) Py_RETURN_NONE; // Nothing to do.
if (fac< 1.0) fac= 1.0;
if (fac> 1.0) fac= 1.0;
AlignAxisToVect(vect,axis,fac);
NodeUpdateGS(0.f,true);