mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-28 01:27:25 -04:00
MSVC warnings (#5595)
This commit is contained in:
@ -47,8 +47,8 @@ int main(void)
|
||||
// Setup the stars with a random position
|
||||
for (int i = 0; i < STAR_COUNT; i++)
|
||||
{
|
||||
stars[i].x = GetRandomValue(-screenWidth*0.5f, screenWidth*0.5f);
|
||||
stars[i].y = GetRandomValue(-screenHeight*0.5f, screenHeight*0.5f);
|
||||
stars[i].x = (float)GetRandomValue(-screenWidth / 2, (int)screenWidth / 2);
|
||||
stars[i].y = (float)GetRandomValue(-screenHeight / 2, (int)screenHeight / 2);
|
||||
stars[i].z = 1.0f;
|
||||
}
|
||||
|
||||
@ -85,8 +85,8 @@ int main(void)
|
||||
if ((stars[i].z < 0.0f) || (starsScreenPos[i].x < 0) || (starsScreenPos[i].y < 0.0f) ||
|
||||
(starsScreenPos[i].x > screenWidth) || (starsScreenPos[i].y > screenHeight))
|
||||
{
|
||||
stars[i].x = GetRandomValue(-screenWidth*0.5f, screenWidth*0.5f);
|
||||
stars[i].y = GetRandomValue(-screenHeight*0.5f, screenHeight*0.5f);
|
||||
stars[i].x = (float)GetRandomValue(-screenWidth / 2, screenWidth / 2);
|
||||
stars[i].y = (float)GetRandomValue(-screenHeight / 2, screenHeight / 2);
|
||||
stars[i].z = 1.0f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user