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:
parent
132cda55c4
commit
44b757381e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user