--- a/hedgewars/uVisualGears.pas Thu Jun 30 14:28:13 2011 +0400
+++ b/hedgewars/uVisualGears.pas Thu Jun 30 15:09:10 2011 +0400
@@ -108,7 +108,8 @@
@doStepNote,
@doStepLineTrail,
@doStepBulletHit,
- @doStepCircle
+ @doStepCircle,
+ @doStepSmoothWindBar
);
function AddVisualGear(X, Y: LongInt; Kind: TVisualGearType; State: LongWord = 0; Critical: Boolean = false): PVisualGear;
@@ -134,7 +135,8 @@
vgtExplosion,
vgtSmokeTrace,
vgtEvilTrace,
- vgtNote]) then
+ vgtNote,
+ vgtSmoothWindBar]) then
begin
AddVisualGear:= nil;
exit
@@ -327,6 +329,7 @@
Frame:= 7;
Angle := 0;
end;
+vgtSmoothWindBar: Tag:= hwRound(cWindSpeed * 72 / cMaxWindSpeed);
end;
if State <> 0 then gear^.State:= State;