diff options
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/spring/files/desync.patch | 23 | ||||
-rw-r--r-- | games-strategy/spring/spring-0.82.7.1-r1.ebuild | 1 |
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 ../.. |