From: Kemedes <ke...@us...> - 2007-09-27 11:33:39
|
Update of /cvsroot/planeshift/planeshift/src/client/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26663/src/client/gui Modified Files: pawsconfigdetails.cpp Log Message: Fixed FS280, FS#288 and #3042. Index: pawsconfigdetails.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/gui/pawsconfigdetails.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** pawsconfigdetails.cpp 14 Jul 2007 20:36:49 -0000 1.14 --- pawsconfigdetails.cpp 27 Sep 2007 11:32:48 -0000 1.15 *************** *** 188,194 **** else cam->UseFixedDistanceClipping(GetValue("DistValue")); - psengine->GetPSCamera()->SaveToFile(); if (GetValue("capFPSValue") > 0)// hardcoded check to prevent a crash psengine->setLimitFPS(GetValue("capFPSValue")); dirty = false; return true; --- 188,202 ---- else cam->UseFixedDistanceClipping(GetValue("DistValue")); if (GetValue("capFPSValue") > 0)// hardcoded check to prevent a crash psengine->setLimitFPS(GetValue("capFPSValue")); + + psCamera::DistanceCfg cfg; + cfg.adaptive = adaptCheck->GetState(); + cfg.dist = GetValue("Dist"); + cfg.minFPS = GetValue("MinFPS"); + cfg.maxFPS = GetValue("MaxFPS"); + cfg.minDist = GetValue("MinDist"); + psengine->GetPSCamera()->SetDistanceCfg(cfg); + psengine->GetPSCamera()->SaveToFile(); dirty = false; return true; |