summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/xd.c b/xd.c
index 8b19ce1..3615634 100644
--- a/xd.c
+++ b/xd.c
@@ -4005,9 +4005,7 @@ static void GravityDemo(void)
gravobj[r].mass += gravobj[f].mass;
}
- g = 1.0 / d*d;
-
- g *= gravobj[f].mass / 10000.0;
+ g = (0.000001 * gravobj[f].mass * gravobj[r].mass) / d*d;
dx /= d;
dy /= d;