summaryrefslogtreecommitdiff
path: root/games-strategy/spring/files/desync.patch
blob: 5b941b65d90677c79857d7abacdb53d0d0933505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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) {