Fixed several inconsistencies between track exporter and STK; made
checkline properties a bit easier to set (added type="lap", instead of the two properties type="check" lap="lap" previously). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4042 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
69c91b7f75
commit
54cf897dc2
@ -28,19 +28,19 @@ CheckStructure::CheckStructure(CheckManager *check_manager,
|
||||
const XMLNode &node)
|
||||
{
|
||||
m_check_manager = check_manager;
|
||||
std::string type;
|
||||
node.get("type", &type);
|
||||
if(type=="new-lap")
|
||||
std::string kind;
|
||||
node.get("kind", &kind);
|
||||
if(kind=="lap")
|
||||
m_check_type = CT_NEW_LAP;
|
||||
else if(type=="activate")
|
||||
else if(kind=="activate")
|
||||
m_check_type = CT_ACTIVATE;
|
||||
else if(type=="toggle")
|
||||
else if(kind=="toggle")
|
||||
m_check_type = CT_TOGGLE;
|
||||
else if(type=="ambient-light")
|
||||
else if(kind=="ambient-light")
|
||||
m_check_type = CT_AMBIENT_SPHERE;
|
||||
else
|
||||
{
|
||||
printf("Unknown check structure '%s' - ignored.\n", type.c_str());
|
||||
printf("Unknown check structure '%s' - ignored.\n", kind.c_str());
|
||||
}
|
||||
m_activate_check_index = -1;
|
||||
node.get("other-id", &m_activate_check_index);
|
||||
|
@ -377,7 +377,7 @@ void Track::createPhysicsModel()
|
||||
} // createPhysicsModel
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
//* Convert the ssg track tree into its physics equivalents.
|
||||
//* Convert the graohics track into its physics equivalents.
|
||||
void Track::convertTrackToBullet(const scene::IMesh *mesh)
|
||||
{
|
||||
for(unsigned int i=0; i<mesh->getMeshBufferCount(); i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user