affect says this spread was supposed to use div - makes for tighter spread
authornemo
Fri, 16 Oct 2009 12:01:19 +0000
changeset 2480 e19419846196
parent 2479 3d7b69dbf7b4
child 2481 e0d89f88dea2
affect says this spread was supposed to use div - makes for tighter spread
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Fri Oct 16 11:58:28 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Fri Oct 16 12:01:19 2009 +0000
@@ -229,7 +229,7 @@
 		PlaySound(sndMolotov, false, nil);
 		//doMakeExplosion(hwRound(Gear^.X), hwRound(Gear^.Y), 5, EXPLAutoSound);
 		for i:= 0 to 40 do begin
-				dX:= AngleCos(i * 2) * ((_0_08*(i mod 10))) * (GetRandom + _1);
+				dX:= AngleCos(i * 2) * ((_0_08*(i div 10))) * (GetRandom + _1);
 				dY:= AngleSin(i * 8) * _0_5 * (GetRandom + _1);
 				Fire:= AddGear(hwRound(Gear^.X), hwRound(Gear^.Y), gtFlame, 0, dX, dY, 0);
 				Fire^.State:= Fire^.State or gsttmpFlag;