From ce2d41bf756fbcd5f1784f646cfe57edf12fa195 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 11 Oct 2011 03:21:42 +0300 Subject: new file: games-strategy/spring/files/desync.patch modified: games-strategy/spring/spring-0.82.7.1-r1.ebuild --- games-strategy/spring/files/desync.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 games-strategy/spring/files/desync.patch (limited to 'games-strategy/spring/files/desync.patch') 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) { -- cgit v1.2.3