aboutsummaryrefslogtreecommitdiff
path: root/games/xspringies
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-02-16 10:33:44 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-02-16 10:33:44 +0000
commit0da78a35723149c24389360aaf2053780fc87f8c (patch)
tree43d7330526d2bb5b6746d2ba62dfdeb306b05234 /games/xspringies
parent3e285348a0f2eff648506ca73fe97e47f3a4a4a0 (diff)
downloadports-0da78a35723149c24389360aaf2053780fc87f8c.tar.gz
ports-0da78a35723149c24389360aaf2053780fc87f8c.zip
Umm, "#" is not a comment character in C. ;)
Notes
Notes: svn path=/head/; revision=5640
Diffstat (limited to 'games/xspringies')
-rw-r--r--games/xspringies/files/patch-013
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;