Avoided 'wrong direction' message if a kart is rescued or playing
an emergency animation (see bug 3100384). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6387 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -788,7 +788,8 @@ void LinearWorld::updateRacePosition()
|
||||
void LinearWorld::checkForWrongDirection(unsigned int i)
|
||||
{
|
||||
if(!m_karts[i]->getController()->isPlayerController()) return;
|
||||
if(!m_kart_info[i].m_on_road) return;
|
||||
if(!m_kart_info[i].m_on_road ||
|
||||
m_karts[i]->playingEmergencyAnimation()) return;
|
||||
|
||||
const Kart *kart=m_karts[i];
|
||||
// If the kart can go in more than one directions from the current track
|
||||
|
||||
Reference in New Issue
Block a user