fix: NPCs were not added to physics system

actorid
Marc Zinnschlag 14 years ago
parent 9946bb36f7
commit 0866e4d4fe

@ -218,8 +218,7 @@ void ExteriorCellRender::insertObjectPhysics()
void ExteriorCellRender::insertActorPhysics()
{
if (!mInsertMesh.empty())
mScene.addActor (mInsert->getName(), mInsertMesh, mInsert->getPosition());
mScene.addActor (mInsert->getName(), mInsertMesh, mInsert->getPosition());
}
// insert a light related to the most recent insertBegin call.

@ -201,8 +201,7 @@ void InteriorCellRender::insertObjectPhysics()
void InteriorCellRender::insertActorPhysics()
{
if (!mInsertMesh.empty())
scene.addActor (insert->getName(), mInsertMesh, insert->getPosition());
scene.addActor (insert->getName(), mInsertMesh, insert->getPosition());
}
// insert a light related to the most recent insertBegin call.

Loading…
Cancel
Save