summaryrefslogtreecommitdiffstats
path: root/src/object
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-12-28 13:23:49 +0100
committerPiotr Dziwinski <piotrdz@gmail.com>2012-12-28 13:23:49 +0100
commit2ebe1fbcb68957bf1d374ffc5dc818dd706c72a7 (patch)
treeaa1fa659b3c452e81411ef68463b2099f8e50436 /src/object
parent3582f107a5e77bc12fc61e4fd99c572a5985254b (diff)
downloadcolobot-2ebe1fbcb68957bf1d374ffc5dc818dd706c72a7.tar.gz
colobot-2ebe1fbcb68957bf1d374ffc5dc818dd706c72a7.tar.bz2
colobot-2ebe1fbcb68957bf1d374ffc5dc818dd706c72a7.zip
Fixed spider and worm model loading
Diffstat (limited to 'src/object')
-rw-r--r--src/object/motion/motionspider.cpp2
-rw-r--r--src/object/motion/motionworm.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/object/motion/motionspider.cpp b/src/object/motion/motionspider.cpp
index 66d89fb..3ede492 100644
--- a/src/object/motion/motionspider.cpp
+++ b/src/object/motion/motionspider.cpp
@@ -104,7 +104,7 @@ bool CMotionSpider::Create(Math::Vector pos, float angle, ObjectType type,
rank = m_engine->CreateObject();
m_engine->SetObjectType(rank, Gfx::ENG_OBJTYPE_VEHICULE); // this is a moving object
m_object->SetObjectRank(0, rank);
- modelManager->AddModelReference("spider0.mod", false, rank);
+ // This is an "empty" object, without triangles
m_object->SetPosition(0, pos);
m_object->SetAngleY(0, angle);
diff --git a/src/object/motion/motionworm.cpp b/src/object/motion/motionworm.cpp
index b53b865..f32765d 100644
--- a/src/object/motion/motionworm.cpp
+++ b/src/object/motion/motionworm.cpp
@@ -92,7 +92,7 @@ bool CMotionWorm::Create(Math::Vector pos, float angle, ObjectType type,
rank = m_engine->CreateObject();
m_engine->SetObjectType(rank, Gfx::ENG_OBJTYPE_VEHICULE); // this is a moving object
m_object->SetObjectRank(0, rank);
- modelManager->AddModelReference("worm0.mod", false, rank); // there is no purpose!
+ // This is an "empty" object, without triangles
m_object->SetPosition(0, pos);
m_object->SetAngleY(0, angle);