summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2018-10-15 12:21:01 +0000
committerIan C <ianc@noddybox.co.uk>2018-10-15 12:21:01 +0000
commite37fab07131b0eb377ff2b5d3bce8b4338d26a70 (patch)
treed0dc55fd8dbb7bd3e5a728bd6be758227233f203
parent2b841e24cde456666f6b1853360a7e7fbf6bebdc (diff)
Small tweak to grav demo.
-rw-r--r--xd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xd.c b/xd.c
index 51900cb..2e54639 100644
--- a/xd.c
+++ b/xd.c
@@ -4004,7 +4004,7 @@ static void GravityDemo(void)
g = 1.0 / d*d;
g /= 100.0;
- g /= gravobj[f].mass;
+ g *= gravobj[f].mass;
dx /= d;
dy /= d;