summaryrefslogtreecommitdiffstats
path: root/src/physics/physics.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-09-27 20:36:52 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-09-27 20:36:52 +0200
commit2ef1c8b6f8976c2c11034a6d30d941e5b22bfac0 (patch)
tree2aaef121c41843066ecefc40a17021f84569129d /src/physics/physics.cpp
parent80d3a9bff1d5999ec5504b50103be7687672227a (diff)
downloadcolobot-2ef1c8b6f8976c2c11034a6d30d941e5b22bfac0.tar.gz
colobot-2ef1c8b6f8976c2c11034a6d30d941e5b22bfac0.tar.bz2
colobot-2ef1c8b6f8976c2c11034a6d30d941e5b22bfac0.zip
Fixed blinking light problem
- temporarily commented out misbehaving code in CPhysics - some fixes in CLightManager - minor refactoring in CRobotMain
Diffstat (limited to 'src/physics/physics.cpp')
-rw-r--r--src/physics/physics.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/physics/physics.cpp b/src/physics/physics.cpp
index 40dbdc7..a3c680b 100644
--- a/src/physics/physics.cpp
+++ b/src/physics/physics.cpp
@@ -3016,7 +3016,12 @@ void CPhysics::FrameParticle(float aTime, float rTime)
effectLight = m_object->GetEffectLight();
if ( effectLight != -1 )
{
- if ( bFlash )
+ /*
+ * TODO: this is supposed to flash lights of robot without power,
+ * but doesn't work correctly (e.g. beginning of scene201).
+ * Commenting out for the time being.
+ */
+ /*if ( bFlash )
{
intensity = 0.0f;
if ( Math::Rand() < 0.5f ) intensity = 1.0f;
@@ -3024,9 +3029,9 @@ void CPhysics::FrameParticle(float aTime, float rTime)
m_lightMan->SetLightIntensitySpeed(effectLight, 10000.0f);
}
else
- {
+ {*/
m_lightMan->SetLightIntensity(effectLight, 0.0f);
- }
+ /*}*/
}
}