diff options
author | wiz <wiz@pkgsrc.org> | 2004-11-29 20:16:59 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2004-11-29 20:16:59 +0000 |
commit | 8c28ca74964d255851683ab61ee8b08bb75a1ff0 (patch) | |
tree | 7e7e934149720c75857c79017a391b51dd897e74 /games/kapooka | |
parent | 7df923365c75bd00c6bc8ff3cfca3518c63482a2 (diff) | |
download | pkgsrc-8c28ca74964d255851683ab61ee8b08bb75a1ff0.tar.gz |
Add patch for gcc2.
Diffstat (limited to 'games/kapooka')
-rw-r--r-- | games/kapooka/distinfo | 3 | ||||
-rw-r--r-- | games/kapooka/patches/patch-ab | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/games/kapooka/distinfo b/games/kapooka/distinfo index a9fd1ab00d4..b26e0bd74d9 100644 --- a/games/kapooka/distinfo +++ b/games/kapooka/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2004/11/24 17:05:04 wiz Exp $ +$NetBSD: distinfo,v 1.2 2004/11/29 20:16:59 wiz Exp $ SHA1 (kapooka_0.2.tar.bz2) = b61080370ccb47ca7320e812fdcdea39a1589aca Size (kapooka_0.2.tar.bz2) = 322009 bytes SHA1 (patch-aa) = 429e7ae7e70854bef13a860db8699376b203c158 +SHA1 (patch-ab) = 71fdeda51180b5bcf6c372c5c62bd50da73de825 diff --git a/games/kapooka/patches/patch-ab b/games/kapooka/patches/patch-ab new file mode 100644 index 00000000000..97336c7ed2c --- /dev/null +++ b/games/kapooka/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1 2004/11/29 20:16:59 wiz Exp $ + +--- helpers.c.orig 2004-10-20 21:40:31.000000000 +0200 ++++ helpers.c +@@ -63,6 +63,8 @@ void HLP_UpdateSinWave(HLP_Wave *_wave) + // Returns the value wrapped inside the range [min, max] inclusive + int HLP_Wrap(int x, int min, int max) + { ++ int diff = max-min; ++ + #ifdef DEBUG_CHECKS + if (min >= max) + { +@@ -70,8 +72,6 @@ int HLP_Wrap(int x, int min, int max) + } + #endif + +- int diff = max-min; +- + while (x < min) + { + x += diff; |