summaryrefslogtreecommitdiff
path: root/games-strategy
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2011-10-11 03:21:42 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2011-10-11 03:21:42 +0300
commitce2d41bf756fbcd5f1784f646cfe57edf12fa195 (patch)
treea9b5d4a6f19d6d5380abfb213dbf3e9db8197c56 /games-strategy
parent42f1825faacbe7a8175c0f75555fa64f19d2d05d (diff)
new file: games-strategy/spring/files/desync.patch
modified: games-strategy/spring/spring-0.82.7.1-r1.ebuild
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/spring/files/desync.patch23
-rw-r--r--games-strategy/spring/spring-0.82.7.1-r1.ebuild1
2 files changed, 24 insertions, 0 deletions
diff --git a/games-strategy/spring/files/desync.patch b/games-strategy/spring/files/desync.patch
new file mode 100644
index 0000000..5b941b6
--- /dev/null
+++ b/games-strategy/spring/files/desync.patch
@@ -0,0 +1,23 @@
+diff -Naur spring_0.82.7.1/rts/Sim/Projectiles/PieceProjectile.cpp spring_patched/rts/Sim/Projectiles/PieceProjectile.cpp
+--- spring_0.82.7.1/rts/Sim/Projectiles/PieceProjectile.cpp 2011-01-08 02:45:23.000000000 +0200
++++ spring_patched/rts/Sim/Projectiles/PieceProjectile.cpp 2011-10-11 03:02:44.000216493 +0300
+@@ -177,7 +177,8 @@
+ pos += norm * 0.1f;
+ } else {
+ if (flags & PF_Explode) {
+- helper->Explosion(pos, DamageArray(50), 5, 0, 10, owner(), false, 1.0f, false, false, 0, 0, ZeroVector, -1);
++ const DamageArray damageArray(50);
++ helper->Explosion(pos, damageArray, 5, 0, 10, owner(), false, 1.0f, false, false, 0, 0, ZeroVector, -1);
+ }
+ if (flags & PF_Smoke) {
+ if (flags & PF_NoCEGTrail) {
+@@ -201,7 +202,8 @@
+ if (unit == owner())
+ return;
+ if (flags & PF_Explode) {
+- helper->Explosion(pos, DamageArray(50), 5, 0, 10, owner(), false, 1.0f, false, false, 0, unit, ZeroVector, -1);
++ const DamageArray damageArray(50);
++ helper->Explosion(pos, damageArray, 5, 0, 10, owner(), false, 1.0f, false, false, 0, unit, ZeroVector, -1);
+ }
+ if (flags & PF_Smoke) {
+ if (flags & PF_NoCEGTrail) {
diff --git a/games-strategy/spring/spring-0.82.7.1-r1.ebuild b/games-strategy/spring/spring-0.82.7.1-r1.ebuild
index 89055ca..7912e2d 100644
--- a/games-strategy/spring/spring-0.82.7.1-r1.ebuild
+++ b/games-strategy/spring/spring-0.82.7.1-r1.ebuild
@@ -49,6 +49,7 @@ src_prepare() {
if ! use headless ; then
epatch "${FILESDIR}/no_headless.patch"
fi
+ epatch "${FILESDIR}/desync.patch"
cd AI/Skirmish
git clone git://github.com/Tarendai/Shard.git
cd ../..