Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbid authored Jun 23, 2024
1 parent 1fdd711 commit 726ec19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,10 @@ vec emoji[20];
//*************************************
void unoccludedRandWorldPos(vec* v)
{
const float rad=esRandFloat(20.f, 120.f), angle=esRandFloat(-PI, PI);
vec p; uint good=1;
do
{
const float rad=esRandFloat(20.f, 120.f), angle=esRandFloat(-PI, PI);
p = (vec){sinf(angle)*rad, p.y = cosf(angle)*rad, p.z = esRandFloat(-8.f, 8.f)};
good=1;
for(uint i=0; i<207; i++) // planets
Expand Down

0 comments on commit 726ec19

Please sign in to comment.