Bugfix: the camera would tilt too much if the loading time of a track

is long. Removed some debug output.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1475 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-02-13 01:18:51 +00:00
parent 7550f687da
commit 1f3055a443
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,9 @@ void GameManager::run()
{
music_on = false;
float dt = (m_curr_time - m_prev_time ) * 0.001f;
scene->draw(dt);
// In the first call dt might be large (includes loading time),
// which can cause the camera to significantly tilt
scene->draw(world->getPhase()==World::SETUP_PHASE ? 0.0f : dt);
if ( world->getPhase() != World::LIMBO_PHASE)
{
world->update(dt);

View File

@ -91,9 +91,7 @@ World::World(const RaceSetup& raceSetup_) : m_race_setup(raceSetup_)
// Load the track models - this must be done before the karts so that the
// karts can be positioned properly on (and not in) the tracks.
printf("begin loading track\n");
loadTrack() ;
printf("endloading track\n");
int pos = 0;
int playerIndex = 0;