diff options
author | erihel <erihel@gmail.com> | 2013-04-28 20:09:41 +0200 |
---|---|---|
committer | erihel <erihel@gmail.com> | 2013-04-28 20:09:41 +0200 |
commit | 919b0e8114368132c88d95768b43fc17c70b699d (patch) | |
tree | 50da6747d6e3dad7e2236a01c6c7a40c910e4a30 /src/object/object.cpp | |
parent | 5669053de08bac9726902e96f89aa85b99909399 (diff) | |
parent | c7d289c00bc60d366f8c5c1016fb30717a228495 (diff) | |
download | colobot-919b0e8114368132c88d95768b43fc17c70b699d.tar.gz colobot-919b0e8114368132c88d95768b43fc17c70b699d.tar.bz2 colobot-919b0e8114368132c88d95768b43fc17c70b699d.zip |
Merge branch 'dev' of github:colobot/colobot into dev
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; |