remove of pod-bot-mm msec method

fixed weird aiming on low fps machines
fixed potential crash bug in weaponn selection code
This commit is contained in:
jeefo 2015-08-03 00:05:27 +03:00
commit ac3a5c7c3f
6 changed files with 14 additions and 31 deletions

View file

@ -225,10 +225,15 @@ namespace Math
#endif
}
inline float AngleDiff (float destAngle, float srcAngle)
static inline float AngleDiff (float destAngle, float srcAngle)
{
return AngleNormalize (destAngle - srcAngle);
}
template <typename Type> Type Clamp (Type x, Type a, Type b)
{
return x < a ? a : (x > b ? b : x);
}
}
//