1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +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);