Merge pull request #1220 from MiroslavR/tcl_collision

Fix actors colliding with noclipping player
This commit is contained in:
scrawl 2017-02-26 23:27:40 +01:00 committed by GitHub
commit d4781d419f

View file

@ -1338,6 +1338,7 @@ namespace MWPhysics
bool cmode = found->second->getCollisionMode(); bool cmode = found->second->getCollisionMode();
cmode = !cmode; cmode = !cmode;
found->second->enableCollisionMode(cmode); found->second->enableCollisionMode(cmode);
found->second->enableCollisionBody(cmode);
return cmode; return cmode;
} }