BGE Fix for no redrawing.

Was caused by un-initialized engine ticrate, do_versions was working on 2.4x but isnt in 2.5 so just add a zero check when getting from the world.
This commit is contained in:
Campbell Barton 2009-06-28 02:37:07 +00:00
parent aa933d2c9f
commit 388e59a768

@ -396,9 +396,9 @@ void KX_KetsjiEngine::StartEngine(bool clearIpo)
World* world = m_scenes[0]->GetBlenderScene()->world; World* world = m_scenes[0]->GetBlenderScene()->world;
if (world) if (world)
{ {
m_ticrate = world->ticrate; m_ticrate = world->ticrate ? world->ticrate : DEFAULT_LOGIC_TIC_RATE;
m_maxLogicFrame = world->maxlogicstep; m_maxLogicFrame = world->maxlogicstep ? world->maxlogicstep : 5;
m_maxPhysicsFrame = world->maxphystep; m_maxPhysicsFrame = world->maxphystep ? world->maxlogicstep : 5;
} }
else else
{ {