1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

NPC activation

This commit is contained in:
Jason Hooks 2012-06-13 12:21:51 -04:00
parent 5028f9926d
commit 897a331244
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ namespace MWClass
const std::string &model = ref->base->model;
assert (ref->base != NULL);
if(!model.empty()){
physics.insertObjectPhysics(ptr, "meshes\\" + model);
physics.insertActorPhysics(ptr, "meshes\\" + model);
}
MWBase::Environment::get().getMechanicsManager()->addActor (ptr);

View File

@ -130,7 +130,7 @@ namespace MWClass
std::string smodel = "meshes\\base_anim.nif";
if(beast)
smodel = "meshes\\base_animkna.nif";
physics.insertActorPhysics(ptr, smodel);
MWBase::Environment::get().getMechanicsManager()->addActor (ptr);