1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-30 10:06:42 +00:00

filled the toggleCollisionMode function. It needs the lastest change in OEngine

This commit is contained in:
gugus 2011-03-18 13:23:26 +01:00
parent 2aee958789
commit 102f1ee5dc

View file

@ -204,5 +204,9 @@ void MWScene::scaleObject (const std::string& handle, float scale)
void MWScene::toggleCollisionMode() void MWScene::toggleCollisionMode()
{ {
for(std::map<std::string,OEngine::Physic::PhysicActor*>::iterator it = eng->PhysicActorMap.begin(); it != eng->PhysicActorMap.end();it++)
{
OEngine::Physic::PhysicActor* act = it->second;
act->enableCollisions(!act->getCollisionMode());
}
} }