Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9710 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
d9f0b49e3b
commit
cb08a03d7d
@ -79,7 +79,7 @@ PhysicalObject::PhysicalObject(const XMLNode &xml_node)
|
|||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
PhysicalObject::PhysicalObject(const std::string& model,
|
PhysicalObject::PhysicalObject(const std::string& model,
|
||||||
bodyTypes shape, int mass, int radius,
|
bodyTypes shape, float mass, float radius,
|
||||||
const core::vector3df& hpr,
|
const core::vector3df& hpr,
|
||||||
const core::vector3df& pos,
|
const core::vector3df& pos,
|
||||||
const core::vector3df& scale)
|
const core::vector3df& scale)
|
||||||
|
@ -70,7 +70,7 @@ public:
|
|||||||
PhysicalObject (const XMLNode &node);
|
PhysicalObject (const XMLNode &node);
|
||||||
|
|
||||||
PhysicalObject(const std::string& model,
|
PhysicalObject(const std::string& model,
|
||||||
bodyTypes shape, int mass, int radius,
|
bodyTypes shape, float mass, float radius,
|
||||||
const core::vector3df& hpr,
|
const core::vector3df& hpr,
|
||||||
const core::vector3df& pos,
|
const core::vector3df& pos,
|
||||||
const core::vector3df& scale);
|
const core::vector3df& scale);
|
||||||
|
@ -193,12 +193,14 @@ void TrackObjectManager::enableFog(bool enable)
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
PhysicalObject* TrackObjectManager::insertObject(const std::string& model,
|
PhysicalObject* TrackObjectManager::insertObject(const std::string& model,
|
||||||
PhysicalObject::bodyTypes shape, int mass, int radius,
|
PhysicalObject::bodyTypes shape,
|
||||||
|
float mass, float radius,
|
||||||
const core::vector3df& hpr,
|
const core::vector3df& hpr,
|
||||||
const core::vector3df& pos,
|
const core::vector3df& pos,
|
||||||
const core::vector3df& scale)
|
const core::vector3df& scale)
|
||||||
{
|
{
|
||||||
PhysicalObject* object = new PhysicalObject(model, shape, mass, radius, hpr, pos, scale);
|
PhysicalObject* object = new PhysicalObject(model, shape, mass, radius,
|
||||||
|
hpr, pos, scale);
|
||||||
object->init();
|
object->init();
|
||||||
m_all_objects.push_back(object);
|
m_all_objects.push_back(object);
|
||||||
return object;
|
return object;
|
||||||
|
@ -55,7 +55,8 @@ public:
|
|||||||
void enableFog(bool enable);
|
void enableFog(bool enable);
|
||||||
|
|
||||||
PhysicalObject* insertObject(const std::string& model,
|
PhysicalObject* insertObject(const std::string& model,
|
||||||
PhysicalObject::bodyTypes shape, int mass, int radius,
|
PhysicalObject::bodyTypes shape,
|
||||||
|
float mass, float radius,
|
||||||
const core::vector3df& hpr,
|
const core::vector3df& hpr,
|
||||||
const core::vector3df& pos,
|
const core::vector3df& pos,
|
||||||
const core::vector3df& scale);
|
const core::vector3df& scale);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user