Skip to content

Commit

Permalink
Add now take inputs into account
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Corno committed May 23, 2018
1 parent da33910 commit 8df5c54
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions gui/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,25 @@ int main()
{
struct item *i = new_item(v);
free_vector(v);

i->size = 100;
i->mass = 100000000000000.0f;

float x = i->position.values[0];
float y = i->position.values[1];
float z = i->position.values[2];

input_to_item(text_list, p, i);

i->position.values[0] = x;
i->position.values[1] = y;
i->position.values[2] = z;

if(i->size <= 1)
i->size = 100;
if(i->mass <= 1)
i->mass = 100000000000000.0f;

push_item(sys, i);

//sys->selected = i;
}
}
}
Expand Down

0 comments on commit 8df5c54

Please sign in to comment.