diff options
author | krzys-h <krzys_h@interia.pl> | 2013-04-28 20:05:19 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-04-28 20:05:19 +0200 |
commit | c7d289c00bc60d366f8c5c1016fb30717a228495 (patch) | |
tree | 533bca9f2ee95aabe922b1229233d757975738cc /src/object/object.cpp | |
parent | fc28a8e8406e4b5fd810a09ed3b9524af8d69482 (diff) | |
download | colobot-c7d289c00bc60d366f8c5c1016fb30717a228495.tar.gz colobot-c7d289c00bc60d366f8c5c1016fb30717a228495.tar.bz2 colobot-c7d289c00bc60d366f8c5c1016fb30717a228495.zip |
Beggining of MissionController
Controling mission using CBot
Diffstat (limited to 'src/object/object.cpp')
-rw-r--r-- | src/object/object.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/object/object.cpp b/src/object/object.cpp index b621ef2..ce79e34 100644 --- a/src/object/object.cpp +++ b/src/object/object.cpp @@ -2145,8 +2145,10 @@ bool CObject::CreateVehicle(Math::Vector pos, float angle, ObjectType type, { m_motion = new CMotionHuman(this); } - else - { + else if ( type == OBJECT_CONTROLLER ) { + m_motion = new CMotion(this); //dummy object + } + else { m_motion = new CMotionVehicle(this); } if ( m_motion == 0 ) return false; |