git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/soccer@13499 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
43f8963a01
commit
a400e48c57
@ -141,7 +141,6 @@ void SoccerWorld::onCheckGoalTriggered(bool first_goal)
|
||||
}*/
|
||||
|
||||
// TODO: rescue the karts
|
||||
// TODO: score a point
|
||||
} // onCheckGoalTriggered
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -378,10 +377,10 @@ AbstractKart *SoccerWorld::createKart(const std::string &kart_ident, int index,
|
||||
{
|
||||
int posIndex = index;
|
||||
if(race_manager->getLocalKartInfo(index).getSoccerTeam() == SOCCER_TEAM_RED){
|
||||
if(index % 2 != 1) posIndex += 1;
|
||||
if(index % 2 != 0) posIndex += 1;
|
||||
}
|
||||
else if(race_manager->getLocalKartInfo(index).getSoccerTeam() == SOCCER_TEAM_BLUE){
|
||||
if(index % 2 != 0) posIndex += 1;
|
||||
if(index % 2 != 1) posIndex += 1;
|
||||
}
|
||||
int position = index+1;
|
||||
btTransform init_pos = m_track->getStartTransform(posIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user