summaryrefslogtreecommitdiff
path: root/games-strategy/spring/files/desync.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/spring/files/desync.patch')
-rw-r--r--games-strategy/spring/files/desync.patch23
1 files changed, 23 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) {