Fixed release mode compilation and removed some compiler warnings.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11524 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-08-27 23:05:44 +00:00
parent 23b5d5cd43
commit 7e2b9abc6e
2 changed files with 5 additions and 4 deletions

View File

@ -602,7 +602,6 @@ void SkiddingAI::handleItemCollectionAndAvoidance(Vec3 *aim_point,
float item_angle = atan2(xyz.getX() - m_kart->getXYZ().getX(),
xyz.getZ() - m_kart->getXYZ().getZ() );
float angle = normalizeAngle(kart_aim_angle - item_angle);
float d = (m_kart->getXYZ()-item_to_collect->getXYZ()).length();
if(fabsf(angle) < 0.3)
{
@ -726,6 +725,7 @@ void SkiddingAI::evaluateItems(const Item *item, float kart_aim_angle,
break;
case Item::ITEM_TRIGGER: return; break;
default: assert(false); break;
} // switch

View File

@ -138,13 +138,14 @@ private:
* node the kart is on (i.e. if kart is in a left turn, this will be
* the last node that is still turning left). */
unsigned int m_last_direction_node;
#ifdef DEBUG
/** For skidding debugging: shows the estimated turn shape. */
ShowCurve **m_curve;
/** If set an item that the AI should aim for. */
const Item *m_item_to_collect;
#ifdef DEBUG
/** For skidding debugging: shows the estimated turn shape. */
ShowCurve **m_curve;
/** For debugging purpose: a sphere indicating where the AI
* is targeting at. */
irr::scene::ISceneNode *m_debug_sphere;