mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 19:51:45 +02:00
one more small thing: show gravity in debug mode hud even when it's a small value
This commit is contained in:
@@ -2054,7 +2054,7 @@ void GameView::OnDraw()
|
|||||||
sampleInfo << "#" << sample.ParticleID << ", ";
|
sampleInfo << "#" << sample.ParticleID << ", ";
|
||||||
}
|
}
|
||||||
sampleInfo << "X:" << sample.PositionX << " Y:" << sample.PositionY;
|
sampleInfo << "X:" << sample.PositionX << " Y:" << sample.PositionY;
|
||||||
if (std::abs(sample.Gravity) > 0.1f)
|
if (sample.Gravity)
|
||||||
sampleInfo << " GX: " << sample.GravityVelocityX << " GY: " << sample.GravityVelocityY;
|
sampleInfo << " GX: " << sample.GravityVelocityX << " GY: " << sample.GravityVelocityY;
|
||||||
|
|
||||||
textWidth = Graphics::textwidth((char*)sampleInfo.str().c_str());
|
textWidth = Graphics::textwidth((char*)sampleInfo.str().c_str());
|
||||||
|
Reference in New Issue
Block a user