1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-03 14:34:34 +00:00

Re-enable double->float cast warning and fix all instances where this fired

This commit is contained in:
fgenesis 2017-01-19 23:31:56 +01:00
parent 0e6dccbb4e
commit 7a60f493a5
50 changed files with 680 additions and 682 deletions

View file

@ -175,21 +175,21 @@ void RoundedRect::show()
{
if (alpha.x == 0)
{
const float t = 0.1;
const float t = 0.1f;
alpha = 0;
alpha.interpolateTo(1, t);
scale = Vector(0.5, 0.5);
scale = Vector(0.5f, 0.5f);
scale.interpolateTo(Vector(1,1), t);
}
}
void RoundedRect::hide()
{
const float t = 0.1;
const float t = 0.1f;
alpha = 1.0;
alpha.interpolateTo(0, t);
scale = Vector(1, 1);
scale.interpolateTo(Vector(0.5,0.5), t);
scale.interpolateTo(Vector(0.5f,0.5f), t);
}