diff options
author | Daniel Goller <morfic@gentoo.org> | 2004-09-04 20:40:00 +0000 |
---|---|---|
committer | Daniel Goller <morfic@gentoo.org> | 2004-09-04 20:40:00 +0000 |
commit | 585a28565f445b91e6604b2b3f1121f3377e261d (patch) | |
tree | 548c6950b6844cd12c016fb874901fc808d821ca /games-action/atanks/files/atanks-gcc34.patch | |
parent | Version bump to 0.13. closes #45884 (diff) | |
download | historical-585a28565f445b91e6604b2b3f1121f3377e261d.tar.gz historical-585a28565f445b91e6604b2b3f1121f3377e261d.tar.bz2 historical-585a28565f445b91e6604b2b3f1121f3377e261d.zip |
applied gcc34 patch
Diffstat (limited to 'games-action/atanks/files/atanks-gcc34.patch')
-rw-r--r-- | games-action/atanks/files/atanks-gcc34.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/games-action/atanks/files/atanks-gcc34.patch b/games-action/atanks/files/atanks-gcc34.patch new file mode 100644 index 000000000000..d229923bff86 --- /dev/null +++ b/games-action/atanks/files/atanks-gcc34.patch @@ -0,0 +1,27 @@ +diff -ur atanks-orig/src/player.cc atanks/src/player.cc +--- atanks-orig/src/player.cc 2004-09-04 02:12:37.847112834 -0400 ++++ atanks/src/player.cc 2004-09-04 02:17:54.685582198 -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)) ++ (abs ((int)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) ++ abs ((int)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 (abs ((int)ctank->x - (int)ltank->x)) * totalEffectiveDamage; + + } + } |