one more small thing: show gravity in debug mode hud even when it's a small value

This commit is contained in:
jacob1 2013-02-08 11:52:59 -05:00
parent cd0af92fb3
commit 7ce34ad732

View File

@ -2054,7 +2054,7 @@ void GameView::OnDraw()
sampleInfo << "#" << sample.ParticleID << ", ";
}
sampleInfo << "X:" << sample.PositionX << " Y:" << sample.PositionY;
if (std::abs(sample.Gravity) > 0.1f)
if (sample.Gravity)
sampleInfo << " GX: " << sample.GravityVelocityX << " GY: " << sample.GravityVelocityY;
textWidth = Graphics::textwidth((char*)sampleInfo.str().c_str());