Fixed profile world (ProfileWorld::CreateKart was not called anymore

since the parameters for that function had changed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6753 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-11-29 02:34:25 +00:00
parent a855d25fc3
commit 65d563ee2e
2 changed files with 5 additions and 4 deletions

View File

@ -21,6 +21,7 @@
#include "graphics/camera.hpp"
#include "graphics/irr_driver.hpp"
#include "tracks/track.hpp"
ProfileWorld::ProfileType ProfileWorld::m_profile_mode=PROFILE_NONE;
int ProfileWorld::m_num_laps = 0;
@ -82,14 +83,15 @@ void ProfileWorld::setProfileModeLaps(int laps)
* \param init_pos The start XYZ coordinates.
*/
Kart *ProfileWorld::createKart(const std::string &kart_ident, int index,
int local_player_id, int global_player_id,
const btTransform &init_pos)
int local_player_id, int global_player_id)
{
// Ignore the kart identifier specified for this kart, instead load
// _only_ the kart specified for the player. This allows to measure
// the impact different karts have on performance.
const std::string prof_kart_id = race_manager->getKartIdent(
race_manager->getNumberOfKarts()-1);
btTransform init_pos = m_track->getStartTransform(index);
Kart *new_kart = new Kart(prof_kart_id, index+1, init_pos);
Controller *controller = loadAIController(new_kart);

View File

@ -70,8 +70,7 @@ private:
protected:
virtual Kart *createKart(const std::string &kart_ident, int index,
int local_player_id, int global_player_id,
const btTransform &init_pos);
int local_player_id, int global_player_id);
public:
ProfileWorld();