- Fix problem when clouds number is 0
- Swap two sounds used when hedgehog get damage due to fall
--- a/hedgewars/GSHandlers.inc Sun Jul 27 22:26:47 2008 +0000
+++ b/hedgewars/GSHandlers.inc Sun Jul 27 23:01:41 2008 +0000
@@ -43,9 +43,9 @@
if _0_4 < Gear^.dY then
begin
if _0_6 < Gear^.dY then
- PlaySound(sndOw1, false)
+ PlaySound(sndOw4, false)
else
- PlaySound(sndOw4, false);
+ PlaySound(sndOw1, false);
dmg:= 1 + hwRound((hwAbs(Gear^.dY) - _0_4) * 70);
inc(Gear^.Damage, dmg);
--- a/hedgewars/uVisualGears.pas Sun Jul 27 22:26:47 2008 +0000
+++ b/hedgewars/uVisualGears.pas Sun Jul 27 23:01:41 2008 +0000
@@ -256,8 +256,8 @@
procedure AddClouds;
var i: LongInt;
begin
-for i:= 0 to cCloudsNumber do
- AddVisualGear( - cScreenWidth + i * ((cScreenWidth * 2 + 2304) div cCloudsNumber), -160, vgtCloud)
+for i:= 0 to cCloudsNumber - 1 do
+ AddVisualGear( - cScreenWidth + i * ((cScreenWidth * 2 + 2304) div (cCloudsNumber + 1)), -160, vgtCloud)
end;
initialization