diff options
Diffstat (limited to 'games/xspringies/files/patch-01')
-rw-r--r-- | games/xspringies/files/patch-01 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/games/xspringies/files/patch-01 b/games/xspringies/files/patch-01 new file mode 100644 index 000000000000..f4c6f8eac1a6 --- /dev/null +++ b/games/xspringies/files/patch-01 @@ -0,0 +1,24 @@ +--- phys.c.orig Mon Mar 29 06:26:52 1993 ++++ phys.c Sat Feb 15 16:54:26 1997 +@@ -212,11 +212,16 @@ + + mass1 = m1->mass; + mass2 = m2->mass; +- +- m1->ax += forcex / mass1; +- m1->ay += forcey / mass1; +- 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; ++ } ++ if (mass2 != 0) { ++ m2->ax -= forcex / mass2; ++ m2->ay -= forcey / mass2; ++ } + } + } + } |