Removed unnecessary/old code: support for track

specific number of karts, and light settings
in track.xml (which can be set using the track
exporter in scene.xml).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6465 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2010-11-08 23:58:12 +00:00
parent 2ef650ec98
commit a47b730f3c
2 changed files with 1 additions and 13 deletions

View File

@@ -78,7 +78,6 @@ Track::Track(std::string filename)
m_mini_map = NULL;
m_sky_dx = 0.05f;
m_sky_dy = 0.0f;
m_max_kart_count = 8;
loadTrackInfo();
} // Track
@@ -206,10 +205,6 @@ void Track::loadTrackInfo()
root->get("gravity", &m_gravity);
root->get("arena", &m_is_arena);
root->get("groups", &m_groups);
root->get("ambient", &m_sun_diffuse_color);
root->get("ambient", &m_sun_specular_color);
root->get("ambient", &m_default_ambient_color);
root->get("maxKartCount", &m_max_kart_count);
for(unsigned int i=0; i<root->getNumNodes(); i++)
{

View File

@@ -136,9 +136,6 @@ private:
/** List of all modes for a track. */
std::vector<TrackMode> m_all_modes;
/** Maximum number of karts that this track can sustain without them starting off-track */
int m_max_kart_count;
/** Name of the track to display. */
irr::core::stringw m_name;
bool m_use_fog;
@@ -275,11 +272,7 @@ public:
/** Get the number of start positions defined in the scene file. */
unsigned int getNumberOfStartPositions() const
{ return m_start_transforms.size(); }
/** \return the maximum number of karts that this track can sustain without them starting off-track */
int getMaxKartCount() const { return m_max_kart_count; }
{ return m_start_transforms.size(); }
}; // class Track
#endif