--- a/hedgewars/uVisualGears.pas Sun Apr 17 11:57:46 2011 -0400
+++ b/hedgewars/uVisualGears.pas Sun Apr 17 12:48:32 2011 -0400
@@ -183,8 +183,8 @@
vgtExplPart2: begin
t:= random(1024);
sp:= 0.001 * (random(95) + 70);
- dx:= AngleSin(t).QWordValue/4294967296 * sp;
- dy:= AngleCos(t).QWordValue/4294967296 * sp;
+ dx:= hwFloat2Float(AngleSin(t)) * sp;
+ dy:= hwFloat2Float(AngleCos(t)) * sp;
if random(2) = 0 then dx := -dx;
if random(2) = 0 then dy := -dy;
Frame:= 7 - random(3);
@@ -193,8 +193,8 @@
vgtFire: begin
t:= random(1024);
sp:= 0.001 * (random(85) + 95);
- dx:= AngleSin(t).QWordValue/4294967296 * sp;
- dy:= AngleCos(t).QWordValue/4294967296 * sp;
+ dx:= hwFloat2Float(AngleSin(t)) * sp;
+ dy:= hwFloat2Float(AngleCos(t)) * sp;
if random(2) = 0 then dx := -dx;
if random(2) = 0 then dy := -dy;
FrameTicks:= 650 + random(250);
@@ -203,8 +203,8 @@
vgtEgg: begin
t:= random(1024);
sp:= 0.001 * (random(85) + 95);
- dx:= AngleSin(t).QWordValue/4294967296 * sp;
- dy:= AngleCos(t).QWordValue/4294967296 * sp;
+ dx:= hwFloat2Float(AngleSin(t)) * sp;
+ dy:= hwFloat2Float(AngleCos(t)) * sp;
if random(2) = 0 then dx := -dx;
if random(2) = 0 then dy := -dy;
FrameTicks:= 650 + random(250);
@@ -284,8 +284,8 @@
vgtFeather: begin
t:= random(1024);
sp:= 0.001 * (random(85) + 95);
- dx:= AngleSin(t).QWordValue/4294967296 * sp;
- dy:= AngleCos(t).QWordValue/4294967296 * sp;
+ dx:= hwFloat2Float(AngleSin(t)) * sp;
+ dy:= hwFloat2Float(AngleCos(t)) * sp;
if random(2) = 0 then dx := -dx;
if random(2) = 0 then dy := -dy;
FrameTicks:= 650 + random(250);
@@ -309,8 +309,8 @@
gear^.Frame:= random(4);
t:= random(1024);
sp:= 0.001 * (random(85) + 47);
- dx:= AngleSin(t).QWordValue/4294967296 * sp;
- dy:= AngleCos(t).QWordValue/4294967296 * sp * -2;
+ dx:= hwFloat2Float(AngleSin(t)) * sp;
+ dy:= hwFloat2Float(AngleCos(t)) * sp * -2;
if random(2) = 0 then dx := -dx;
end;
vgtNote: begin