diff options
author | asami <asami@FreeBSD.org> | 1997-02-16 18:33:44 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1997-02-16 18:33:44 +0800 |
commit | f866876eaf59cb53606a9a4aaf4ccbb6d9829c14 (patch) | |
tree | f0c667691ccc25c192d63baf3009039916c7f3f7 /games/xspringies | |
parent | b8243fbb667b0829f9585cc59d04e4250a9e1e19 (diff) | |
download | freebsd-ports-gnome-f866876eaf59cb53606a9a4aaf4ccbb6d9829c14.tar.gz freebsd-ports-gnome-f866876eaf59cb53606a9a4aaf4ccbb6d9829c14.tar.zst freebsd-ports-gnome-f866876eaf59cb53606a9a4aaf4ccbb6d9829c14.zip |
Umm, "#" is not a comment character in C. ;)
Diffstat (limited to 'games/xspringies')
-rw-r--r-- | games/xspringies/files/patch-01 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/games/xspringies/files/patch-01 b/games/xspringies/files/patch-01 index f4c6f8eac1a6..2b7a99a54e7b 100644 --- a/games/xspringies/files/patch-01 +++ b/games/xspringies/files/patch-01 @@ -1,6 +1,6 @@ --- phys.c.orig Mon Mar 29 06:26:52 1993 +++ phys.c Sat Feb 15 16:54:26 1997 -@@ -212,11 +212,16 @@ +@@ -212,11 +212,15 @@ mass1 = m1->mass; mass2 = m2->mass; @@ -10,7 +10,6 @@ - m2->ax -= forcex / mass2; - m2->ay -= forcey / mass2; + -+ # gives "signal SIGFPE, Arithmetic exception" w/o the tests + if (mass1 != 0) { + m1->ax += forcex / mass1; + m1->ay += forcey / mass1; |