From 4606f1b1923eba3a972449067bad70b07ad28e2f Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 5 Sep 2011 04:04:42 +0000 Subject: [PATCH] Improved documentation, removed mixed-case variable name. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9751 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/karts/kart.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index b922f3b0b..874fc98ab 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -208,13 +208,16 @@ void Kart::setController(Controller *controller) * and the pitch will be set appropriately. A custom pitch value can be * specified in order to overwrite the terrain pitch (which would be used * otherwise). - * \param customPitch Pitch value to overwrite the terrain pitch. + * \param custom_pitch Pitch value to overwrite the terrain pitch. A value of + * -1 indicates that the custom_pitch value should not be used, instead + * the actual pitch of the terrain is to be used. */ -btTransform Kart::getAlignedTransform(const float customPitch) +btTransform Kart::getAlignedTransform(const float custom_pitch) { btTransform trans = getTrans(); - float pitch = (customPitch == -1 ? getTerrainPitch(getHeading()) : customPitch); + float pitch = (custom_pitch == -1 ? getTerrainPitch(getHeading()) + : custom_pitch); btMatrix3x3 m; m.setEulerZYX(pitch, getHeading(), 0.0f);