[Orxonox-commit 2383] r7098 - code/branches/presentation3/src/orxonox/graphics

landauf at orxonox.net landauf at orxonox.net
Thu Jun 3 01:03:28 CEST 2010


Author: landauf
Date: 2010-06-03 01:03:28 +0200 (Thu, 03 Jun 2010)
New Revision: 7098

Modified:
   code/branches/presentation3/src/orxonox/graphics/Camera.cc
Log:
fixed a bug which caused a black screen after pressing pause and a crash after pressing pause again

Modified: code/branches/presentation3/src/orxonox/graphics/Camera.cc
===================================================================
--- code/branches/presentation3/src/orxonox/graphics/Camera.cc	2010-06-02 22:39:55 UTC (rev 7097)
+++ code/branches/presentation3/src/orxonox/graphics/Camera.cc	2010-06-02 23:03:28 UTC (rev 7098)
@@ -110,7 +110,7 @@
     {
         SUPER(Camera, tick, dt);
 
-        if (this->bDrag_)
+        if (this->bDrag_ && this->getTimeFactor() != 0)
         {
             // this stuff here may need some adjustments
             float poscoeff = 15.0f * dt / this->getTimeFactor();




More information about the Orxonox-commit mailing list