Removed unused variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2489 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
9421059a8d
commit
f3eb9b168e
@ -69,7 +69,6 @@ void KartPropertiesManager::removeTextures()
|
||||
//-----------------------------------------------------------------------------
|
||||
void KartPropertiesManager::loadKartData(bool dont_load_models)
|
||||
{
|
||||
m_max_steer_angle = -1.0f;
|
||||
std::set<std::string> result;
|
||||
file_manager->listFiles(result, file_manager->getKartDir(),
|
||||
/*is_full_path*/ true);
|
||||
@ -95,10 +94,6 @@ void KartPropertiesManager::loadKartData(bool dont_load_models)
|
||||
kp->load(kart_file, "tuxkart-kart", dont_load_models);
|
||||
m_karts_properties.push_back(kp);
|
||||
m_kart_available.push_back(true);
|
||||
if(kp->getMaxSteerAngle(0) > m_max_steer_angle)
|
||||
{
|
||||
m_max_steer_angle = kp->getMaxSteerAngle(0);
|
||||
}
|
||||
const std::vector<std::string>& groups=kp->getGroups();
|
||||
for(unsigned int g=0; g<groups.size(); g++)
|
||||
{
|
||||
|
@ -39,7 +39,6 @@ private:
|
||||
* all clients or not. */
|
||||
std::vector<bool> m_kart_available;
|
||||
protected:
|
||||
float m_max_steer_angle;
|
||||
|
||||
typedef std::vector<KartProperties*> KartPropertiesVector;
|
||||
/** All available kart configurations */
|
||||
@ -54,7 +53,6 @@ public:
|
||||
const int getKartId (const std::string &ident) const;
|
||||
int getKartByGroup (const std::string& group, int i) const;
|
||||
void loadKartData (bool dont_load_models=false);
|
||||
const float getMaximumSteeringAngle() const {return m_max_steer_angle;}
|
||||
const unsigned int getNumberOfKarts () const {return (unsigned int)m_karts_properties.size();}
|
||||
const std::vector<std::string>&
|
||||
getAllGroups () const {return m_all_groups; }
|
||||
|
Loading…
Reference in New Issue
Block a user