Modify skidding probability into something that makes more sense to me. Joerg, feel free to change if you find better

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11817 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-10-30 01:00:36 +00:00
parent 132cda55c4
commit 44b757381e

View File

@ -2221,7 +2221,8 @@ void SkiddingAI::setSteering(float angle, float dt)
{
int prob = (int)(100.0f*m_ai_properties
->getSkiddingProbability(m_distance_to_player));
m_skid_probability_state = (m_random_skid.get(100)>=prob)
int r = m_random_skid.get(100);
m_skid_probability_state = (r<prob)
? SKID_PROBAB_SKID
: SKID_PROBAB_NO_SKID;
#undef PRINT_SKID_STATS