Improved support for lower end computers with improved gfx=false experience

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6650 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2010-11-19 21:23:06 +00:00
parent 29ef4826a6
commit ded3a3daf7
2 changed files with 10 additions and 5 deletions

View File

@@ -735,10 +735,11 @@ void Kart::update(float dt)
{
m_smoke_system->update(dt);
m_water_splash_system->update(dt);
m_nitro->update(dt);
m_slipstream->update(dt);
} // UserConfigParams::m_graphical_effects
m_nitro->update(dt);
m_slipstream->update(dt);
updatePhysics(dt);
/* (TODO: add back when properly done)

View File

@@ -19,6 +19,7 @@
#include "tracks/track_object_manager.hpp"
#include "config/user_config.hpp"
#include "animations/three_d_animation.hpp"
#include "io/xml_node.hpp"
#include "physics/physical_object.hpp"
@@ -102,10 +103,13 @@ void TrackObjectManager::handleExplosion(const Vec3 &pos, const PhysicalObject *
// ----------------------------------------------------------------------------
void TrackObjectManager::update(float dt)
{
for(std::vector<TrackObject*>::const_iterator i=m_all_objects.begin();
i!=m_all_objects.end(); i++)
if ( UserConfigParams::m_graphical_effects )
{
(*i)->update(dt);
for(std::vector<TrackObject*>::const_iterator i=m_all_objects.begin();
i!=m_all_objects.end(); i++)
{
(*i)->update(dt);
}
}
} // update