diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2008-08-11 08:14:58 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2008-08-11 08:14:58 +0000 |
commit | b796d3f5306ae5f395e35e22addb91d25ed51a4d (patch) | |
tree | 9f0d10872e470d89c12b79806fdeffb0cb090854 /games-action | |
parent | version bump (diff) | |
download | historical-b796d3f5306ae5f395e35e22addb91d25ed51a4d.tar.gz historical-b796d3f5306ae5f395e35e22addb91d25ed51a4d.tar.bz2 historical-b796d3f5306ae5f395e35e22addb91d25ed51a4d.zip |
old
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'games-action')
-rw-r--r-- | games-action/atanks/Manifest | 4 | ||||
-rw-r--r-- | games-action/atanks/atanks-1.1.0.ebuild | 49 | ||||
-rw-r--r-- | games-action/atanks/files/1.1.0-gentoo.patch | 107 | ||||
-rw-r--r-- | games-action/atanks/files/atanks-1.1.0-gcc4.patch | 27 |
4 files changed, 0 insertions, 187 deletions
diff --git a/games-action/atanks/Manifest b/games-action/atanks/Manifest index d958ea7815f3..cfcef92d71ae 100644 --- a/games-action/atanks/Manifest +++ b/games-action/atanks/Manifest @@ -1,9 +1,5 @@ -AUX 1.1.0-gentoo.patch 5379 RMD160 774ee3ad923fe3f15cdf266647b17c7da8646953 SHA1 2993be9b0a390d3fe4006356915ba387402e824e SHA256 f6ee56d7ea43a8f586e05b48756dfce627ed5bc639846f487e2031c8e5011a9a -AUX atanks-1.1.0-gcc4.patch 1212 RMD160 29a5fef99ae74b5ddde372be19b4775019fda43e SHA1 aac864117101fc8552f15545f1d75dfeba7cd07a SHA256 bae78551665f316e61b96d8fd5044974b7b81a7d956f7c203cf0c5bd8f00629b -DIST atanks-1.1.0.tar.gz 1073860 RMD160 e64e17ff7accb653d39a6401b2eb245794a2c6b5 SHA1 ed098cfd36a802ffbbbb9c3ca6fbf649dd4e557e SHA256 1dff74e273d6c7fb2190ed93306c714ca81ddd81861c737ac9663bc5e4014b9f DIST atanks-2.9.tar.gz 1373901 RMD160 773fe7ee00d70e13f2f1a8cb7d71b85ac196fa52 SHA1 59b033714f298c689d3eaf1133b11bb708f14f89 SHA256 b112abb0ba5db70174158412eb216003776d54cce3c525e8a0958adf285258e8 DIST atanks-3.1.tar.gz 1369805 RMD160 e51624da4563b9cdc3e77275d6212895cded537f SHA1 3937a1dab9001c60be659bb913d95b9c57817d2c SHA256 e95dac004efcd8d6cfd97da0f4a3c66adfcbc791423030f24a2e2621e1567e93 -EBUILD atanks-1.1.0.ebuild 1195 RMD160 aacd46a5bfd80ca1a0357cf9149166bcbefa03d2 SHA1 b8aeba2ca1d82b68cbd49d6e3295d18dae949301 SHA256 bd584b7aabb3e14b5057dd6267f43114f0b33a6cb1924c10179a97569379adf9 EBUILD atanks-2.9.ebuild 1035 RMD160 7feca5d5a0df780f9209298c31e180ab12ea297a SHA1 5ae14e4c7d9b9be20213e59d18d5d3d3f67b7114 SHA256 27be40a8b2127d21de5722573c474adc6ca9c6884551bb7e4edc256d81477d42 EBUILD atanks-3.1.ebuild 1041 RMD160 bfaffc485481dc702bc5ef4d5c6311d9129780b9 SHA1 5c8a78dff4c0b54fee9300fcad978ae47dd048d1 SHA256 0a4b5fe756ee0f693517c4c2f5a9231ed6e35541437fef0ac60211c57215f77f MISC ChangeLog 5129 RMD160 35fe924a805446298215f342fbfec82da2be0fde SHA1 2512e703b7493f20892d5940f8d42212d78e653b SHA256 a85c049d6e2c3e86e5961ab922a80891e5a72def06cc3f93ecd98117f6e8a2a5 diff --git a/games-action/atanks/atanks-1.1.0.ebuild b/games-action/atanks/atanks-1.1.0.ebuild deleted file mode 100644 index 9a2bc38ed870..000000000000 --- a/games-action/atanks/atanks-1.1.0.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/atanks/atanks-1.1.0.ebuild,v 1.17 2006/10/30 18:20:05 mr_bones_ Exp $ - -inherit eutils toolchain-funcs games - -DESCRIPTION="Worms and Scorched Earth-like game" -HOMEPAGE="http://atanks.sourceforge.net/" -SRC_URI="mirror://sourceforge/atanks/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc x86" -IUSE="" - -DEPEND="media-libs/allegro" - -S=${WORKDIR}/${PN} - -src_unpack() { - DATA_DIR="${GAMES_DATADIR}/${PN}" - - unpack ${A} - cd "${S}" - - epatch \ - "${FILESDIR}/${PV}-gentoo.patch" \ - "${FILESDIR}/${P}-gcc4.patch" - - sed -i \ - -e "s:DATA_DIR=.*:DATA_DIR=\\\\\"${DATA_DIR}\\\\\":" \ - src/Makefile \ - || die "sed src/Makefile failed" -} - -src_install() { - dogamesbin atanks || die "dogamesbin failed" - insinto "${DATA_DIR}" - doins {credits,gloat,instr,revenge}.txt *dat || die "doins failed" - dodoc BUGS Changelog Help.txt tanks.txt README TODO - prepgamesdirs -} - -pkg_postinst() { - games_pkg_postinst - echo - einfo "NOTE: If you had atanks version 0.9.8b or less installed" - einfo "remove ~/.atanks-config to take advantage of new features." -} diff --git a/games-action/atanks/files/1.1.0-gentoo.patch b/games-action/atanks/files/1.1.0-gentoo.patch deleted file mode 100644 index 3ad775640f2c..000000000000 --- a/games-action/atanks/files/1.1.0-gentoo.patch +++ /dev/null @@ -1,107 +0,0 @@ -Index: src/explosion.cc -=================================================================== -RCS file: /cvsroot/atanks/atanks/src/explosion.cc,v -retrieving revision 1.12 -diff -u -r1.12 explosion.cc ---- src/explosion.cc 1 Feb 2004 23:29:28 -0000 1.12 -+++ src/explosion.cc 10 Oct 2004 20:14:03 -0000 -@@ -159,7 +159,7 @@ - } - if (distance <= (radius + TANKHEIGHT/2) && tank->l > 0) { - _global->updateMenu = 1; -- tank->damage = (int) ((float) damage * ((float) 1 - ((fabs (distance) / (float)radius) / 2)) * player->damageMultiplier); -+ tank->damage = (int) ((player ? (float) damage * player->damageMultiplier : (float) damage) * ((float) 1 - ((fabs (distance) / (float)radius) / 2))); - - tank->creditTo = player; - tank->applyDamage (); -@@ -253,7 +253,7 @@ - if (a > 1 && a <= EXPLODEFRAMES + 1) { - int startCirc = (radius / EXPLODEFRAMES) * a; - circlefill (_env->terrain, (int)x, (int)y, startCirc, PINK); -- circle (dest, (int)x, (int)y, startCirc, player->color); -+ circle (dest, (int)x, (int)y, startCirc, player ? player->color : WHITE); - setUpdateArea ((int)x - (radius + 1), (int)y - (radius + 1), (radius + 1) * 2, (radius + 1) * 2); - } - } else if ((type >= RIOT_CHARGE) && (type <= RIOT_BLAST)) { -@@ -261,7 +261,7 @@ - double sx = x - _global->slope[angle][0] * 15; - double sy = y - _global->slope[angle][1] * 15; - int startCirc = (radius / EXPLODEFRAMES) * a; -- triangle (dest, (int)sx, (int)sy, (int)(sx + _global->slope[(angle + 45) % 360][0] * startCirc), (int)(sy + _global->slope[(angle + 45) % 360][1] * startCirc),(int)(sx + _global->slope[(angle + 315) % 360][0] * startCirc),(int)(sy + _global->slope[(angle + 315) % 360][1] * startCirc), player->color); -+ triangle (dest, (int)sx, (int)sy, (int)(sx + _global->slope[(angle + 45) % 360][0] * startCirc), (int)(sy + _global->slope[(angle + 45) % 360][1] * startCirc),(int)(sx + _global->slope[(angle + 315) % 360][0] * startCirc),(int)(sy + _global->slope[(angle + 315) % 360][1] * startCirc), player ? player->color : WHITE); - setUpdateArea ((int)sx - (startCirc + 1), (int)sy - (startCirc + 1), (startCirc + 1) * 2, (startCirc + 1) * 2); - } - } else { -Index: src/beam.cc -=================================================================== -RCS file: /cvsroot/atanks/atanks/src/beam.cc,v -retrieving revision 1.6 -diff -u -r1.6 beam.cc ---- src/beam.cc 4 Feb 2004 23:34:33 -0000 1.6 -+++ src/beam.cc 10 Oct 2004 20:14:03 -0000 -@@ -167,7 +167,7 @@ - if (targetX > ltank->x - TANKWIDTH - radius && targetX < ltank->x + TANKWIDTH + radius && targetY > ltank->y - radius && targetY < ltank->y + TANKHEIGHT + radius && ltank->l > 0) { - //hitSomething = 1; - ltank->requireUpdate (); -- ltank->damage += damage * player->damageMultiplier; -+ ltank->damage += player ? damage * player->damageMultiplier : damage; - ltank->creditTo = player; - if (destroy) - ltank->applyDamage (); -Index: src/tank.cc -=================================================================== -RCS file: /cvsroot/atanks/atanks/src/tank.cc,v -retrieving revision 1.20 -diff -u -r1.20 tank.cc ---- src/tank.cc 1 Feb 2004 23:29:28 -0000 1.20 -+++ src/tank.cc 10 Oct 2004 20:13:18 -0000 -@@ -171,7 +171,8 @@ - sh -= (int)damage; - if (creditTo) { - if (player != creditTo) { //enemy hit ++ -- creditTo->money += (int)(damage * _global->scoreHitUnit); -+ double money = damage * _global->scoreHitUnit; -+ creditTo->money += (money < LONG_MAX ? (int)money : LONG_MAX); - if ((int)player->type != HUMAN_PLAYER) { - if (player->revenge == creditTo) { - player->annoyanceFactor += damage; -Index: src/atanks.cc -=================================================================== -RCS file: /cvsroot/atanks/atanks/src/atanks.cc,v -retrieving revision 1.57 -diff -u -r1.57 atanks.cc ---- src/atanks.cc 4 Feb 2004 23:34:33 -0000 1.57 -+++ src/atanks.cc 10 Oct 2004 20:13:18 -0000 -@@ -1574,7 +1574,8 @@ - fi = global->stopwindow = updatename = scroll = 1; - if (global->currentround != global->rounds) { - for (z = 0; z < global->numPlayers; z++) { -- global->players[z]->money = (long int) (global->players[z]->money * global->interest); -+ double money = global->players[z]->money * global->interest; -+ global->players[z]->money = (money < LONG_MAX ? (long int) money : LONG_MAX); - } - } - -@@ -2764,9 +2765,11 @@ - ltank->explode (); - if (ltank->creditTo) { - if (ltank->player != ltank->creditTo) { //enemy destroyed -- ltank->creditTo->money += (int)global->scoreUnitDestroyBonus; -+ double money = ltank->creditTo->money + global->scoreUnitDestroyBonus; -+ ltank->creditTo->money = (money < LONG_MAX ? (long int)money : LONG_MAX); - } else { //self destroy - ugh foolish one :)) - ltank->creditTo->money -= (int)global->scoreUnitSelfDestroy; -+ if (ltank->creditTo->money < 0) ltank->creditTo->money = 0; - } - ltank->creditTo = NULL; - } -@@ -2808,7 +2811,8 @@ - if (winner >= 0) { - global->players[winner]->score++; - global->players[winner]->won++; -- global->players[winner]->money += (long int)global->scoreRoundWinBonus; -+ double money = global->players[winner]->money + global->scoreRoundWinBonus; -+ global->players[winner]->money = (money < LONG_MAX ? (long int) money : LONG_MAX); - } - bCount = 0; - global->updateMenu = 1; diff --git a/games-action/atanks/files/atanks-1.1.0-gcc4.patch b/games-action/atanks/files/atanks-1.1.0-gcc4.patch deleted file mode 100644 index 7b7d4b8f4aeb..000000000000 --- a/games-action/atanks/files/atanks-1.1.0-gcc4.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -ur atanks-orig/src/player.cc atanks/src/player.cc ---- atanks-orig/src/player.cc 2005-08-18 22:02:59.000000000 -0400 -+++ atanks/src/player.cc 2005-08-18 22:05:58.000000000 -0400 -@@ -1009,12 +1009,12 @@ - if (weapNum >= RIOT_CHARGE && weapNum <= RIOT_BLAST) { - // add points only within range and above ctank - if ( (cy > ctank->y - (radius / 2)) || -- (abs (ctank->x - cx) > radius)) -+ (fabs (ctank->x - cx) > radius)) - continue; - } else if (weapNum >= SML_ROLLER && weapNum <= DTH_ROLLER) { - // Only aim rollers above other tanks - if (cy > tankY + TANKHEIGHT && -- abs (ctank->x - cx) > radius) -+ fabs (ctank->x - cx) > radius) - continue; - } else if (weapNum >= SML_LAZER && weapNum <= LRG_LAZER) { - // Lazer can only be aimed above horizontal -@@ -1085,7 +1085,7 @@ - if (itemNum >= ITEM_VENGEANCE && itemNum <= ITEM_FATAL_FURY) { - // add sqrt distances for each tank * potential damage - long int totalEffectiveDamage = calcTotalEffectiveDamage (itemNum); -- _targetMatrix[(int)ctank->x] += sqrt (abs (ctank->x - ltank->x)) * totalEffectiveDamage; -+ _targetMatrix[(int)ctank->x] += sqrt (fabs (ctank->x - ltank->x)) * totalEffectiveDamage; - - } - } |