summaryrefslogtreecommitdiffstats
path: root/src/object/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/object.cpp')
-rw-r--r--src/object/object.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/object/object.cpp b/src/object/object.cpp
index 5df4393..4cf0688 100644
--- a/src/object/object.cpp
+++ b/src/object/object.cpp
@@ -343,7 +343,7 @@ CObject::CObject()
m_botVar = CBotVar::Create("", CBotTypResult(CBotTypClass, "object"));
m_botVar->SetUserPtr(this);
m_botVar->SetIdent(m_id);
-
+
CObjectManager::GetInstancePointer()->AddInstance(this);
}
@@ -2146,10 +2146,12 @@ bool CObject::CreateVehicle(Math::Vector pos, float angle, ObjectType type,
{
m_motion = new CMotionHuman(this);
}
- else if ( type == OBJECT_CONTROLLER ) {
+ else if ( type == OBJECT_CONTROLLER )
+ {
m_motion = new CMotionDummy(this); //dummy object
}
- else {
+ else
+ {
m_motion = new CMotionVehicle(this);
}
if ( m_motion == 0 ) return false;
@@ -7391,4 +7393,3 @@ void CObject::SetTraceWidth(float width)
mv->SetTraceWidth(width);
}
-