From 8aeefd2af8404ab1f5f09e7de155400293a39a9c Mon Sep 17 00:00:00 2001 From: gugus Date: Sun, 20 Mar 2011 21:52:31 +0100 Subject: [PATCH] fix the fall bug when using ToggleCollision. Require lastest change with OEngine. --- apps/openmw/mwrender/mwscene.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwrender/mwscene.cpp b/apps/openmw/mwrender/mwscene.cpp index ce54e8a19..6eb80829e 100644 --- a/apps/openmw/mwrender/mwscene.cpp +++ b/apps/openmw/mwrender/mwscene.cpp @@ -211,12 +211,14 @@ void MWScene::toggleCollisionMode() if(cmode) { act->enableCollisions(false); - act->setGravity(0); + act->setGravity(0.); + act->setVerticalVelocity(0); } else { act->enableCollisions(true); - act->setGravity(10); + act->setGravity(10.); + act->setVerticalVelocity(0); } } }