Fixed kart-flying bug: pressing repeatedly 'skid' would push
the kart higher and higher (#722). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11756 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
67487883f8
commit
6c1e4e8846
@ -267,6 +267,9 @@ void Skidding::update(float dt, bool is_on_ground,
|
||||
if(skidding!=KartControl::SC_LEFT &&
|
||||
skidding!=KartControl::SC_RIGHT)
|
||||
break;
|
||||
// Don't allow skidding while the kart is (apparently)
|
||||
// still in the air.
|
||||
if(m_remaining_jump_time>0) break;
|
||||
m_skid_state = skidding==KartControl::SC_RIGHT
|
||||
? SKID_ACCUMULATE_RIGHT
|
||||
: SKID_ACCUMULATE_LEFT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user