summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2018-10-16 08:41:53 +0000
committerIan C <ianc@noddybox.co.uk>2018-10-16 08:41:53 +0000
commit6d3b79043b175f76ba12ffbb729028f05cc065a5 (patch)
tree0a5c09be326ee5aaa5805921db1f78923df1bb31
parentb7bb6135ac5d61c3c11079f8a526bfb3e091b04e (diff)
Small tweak to grav demo.
-rw-r--r--xd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xd.c b/xd.c
index b695107..8b19ce1 100644
--- a/xd.c
+++ b/xd.c
@@ -4007,8 +4007,7 @@ static void GravityDemo(void)
g = 1.0 / d*d;
- g /= 10000.0;
- g *= gravobj[f].mass;
+ g *= gravobj[f].mass / 10000.0;
dx /= d;
dy /= d;