Fixed one crash with battle mode (though it still doesn't work fully).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6312 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
bcce18aa50
commit
716f7e4942
@ -742,11 +742,12 @@ void Track::loadTrackModel(World* parent, unsigned int mode_id)
|
|||||||
default_start->get("karts-per-row", &karts_per_row );
|
default_start->get("karts-per-row", &karts_per_row );
|
||||||
}
|
}
|
||||||
m_start_transforms.resize(race_manager->getNumberOfKarts());
|
m_start_transforms.resize(race_manager->getNumberOfKarts());
|
||||||
m_quad_graph->setDefaultStartPositions(&m_start_transforms,
|
if(!m_is_arena)
|
||||||
karts_per_row,
|
m_quad_graph->setDefaultStartPositions(&m_start_transforms,
|
||||||
forwards_distance,
|
karts_per_row,
|
||||||
sidewards_distance,
|
forwards_distance,
|
||||||
upwards_distance);
|
sidewards_distance,
|
||||||
|
upwards_distance);
|
||||||
|
|
||||||
loadMainTrack(*root);
|
loadMainTrack(*root);
|
||||||
unsigned int main_track_count = m_all_nodes.size();
|
unsigned int main_track_count = m_all_nodes.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user