Convert fp constants from double -> float.
Change-Id: I5fff1660549473a45dafd3406f22005024655ad7
This commit is contained in:
@@ -95,7 +95,7 @@ void root(const Ball_t *ballIn, Ball_t *ballOut, const BallControl_t *ctl, uint3
|
||||
float d = gMaxPos.x - ballOut->position.x;
|
||||
if (d < 0.f) {
|
||||
if (ballOut->delta.x > 0) {
|
||||
ballOut->delta.x *= -0.7;
|
||||
ballOut->delta.x *= -0.7f;
|
||||
}
|
||||
ballOut->position.x = gMaxPos.x;
|
||||
} else {
|
||||
@@ -107,7 +107,7 @@ void root(const Ball_t *ballIn, Ball_t *ballOut, const BallControl_t *ctl, uint3
|
||||
float d = ballOut->position.x - gMinPos.x;
|
||||
if (d < 0.f) {
|
||||
if (ballOut->delta.x < 0) {
|
||||
ballOut->delta.x *= -0.7;
|
||||
ballOut->delta.x *= -0.7f;
|
||||
}
|
||||
ballOut->position.x = gMinPos.x + 1.f;
|
||||
} else {
|
||||
@@ -119,7 +119,7 @@ void root(const Ball_t *ballIn, Ball_t *ballOut, const BallControl_t *ctl, uint3
|
||||
float d = gMaxPos.y - ballOut->position.y;
|
||||
if (d < 0.f) {
|
||||
if (ballOut->delta.y > 0) {
|
||||
ballOut->delta.y *= -0.7;
|
||||
ballOut->delta.y *= -0.7f;
|
||||
}
|
||||
ballOut->position.y = gMaxPos.y;
|
||||
} else {
|
||||
@@ -131,7 +131,7 @@ void root(const Ball_t *ballIn, Ball_t *ballOut, const BallControl_t *ctl, uint3
|
||||
float d = ballOut->position.y - gMinPos.y;
|
||||
if (d < 0.f) {
|
||||
if (ballOut->delta.y < 0) {
|
||||
ballOut->delta.y *= -0.7;
|
||||
ballOut->delta.y *= -0.7f;
|
||||
}
|
||||
ballOut->position.y = gMinPos.y + 1.f;
|
||||
} else {
|
||||
|
||||
@@ -42,7 +42,7 @@ void initParts(int w, int h)
|
||||
|
||||
float r = rsRand(100.f);
|
||||
if (r > 90.f) {
|
||||
balls1[ct].size += pow(10.f, rsRand(0.f, 2.f)) * 0.07;
|
||||
balls1[ct].size += pow(10.f, rsRand(0.f, 2.f)) * 0.07f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user