make some of the newly migrated visual gears visible in reduced quality mode
authorsheepluva
Fri, 07 May 2010 14:41:07 +0000
changeset 3447 2f1c2b7215e6
parent 3446 1be74e601960
child 3448 b79908461a11
make some of the newly migrated visual gears visible in reduced quality mode
hedgewars/uVisualGears.pas
--- a/hedgewars/uVisualGears.pas	Fri May 07 13:04:01 2010 +0000
+++ b/hedgewars/uVisualGears.pas	Fri May 07 14:41:07 2010 +0000
@@ -132,9 +132,14 @@
         end;
 
 if cReducedQuality and
-   (Kind <> vgtTeamHealthSorter) and
-   (Kind <> vgtSmallDamageTag) and
-   (Kind <> vgtSpeechBubble) then
+   not (Kind in
+   [vgtTeamHealthSorter,
+    vgtSmallDamageTag,
+    vgtSpeechBubble,
+    vgtHealthTag,
+    vgtExplosion,
+    vgtSmokeTrace,
+    vgtEvilTrace]) then
     begin
     AddVisualGear:= nil;
     exit
@@ -381,14 +386,15 @@
                     else
                         DrawRotatedF(sprFlake, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame, 1, Gear^.Angle);
             vgtCloud: DrawSprite(sprCloud, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame);
-            
-            vgtSmokeTrace: if Gear^.State < 8 then DrawSprite(sprSmokeTrace, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, Gear^.State);
-            vgtEvilTrace: if Gear^.State < 8 then DrawSprite(sprEvilTrace, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, Gear^.State);
             end;
         Gear:= Gear^.NextGear
         end;
     1: while Gear <> nil do
         begin
+        case Gear^.Kind of
+            vgtSmokeTrace: if Gear^.State < 8 then DrawSprite(sprSmokeTrace, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, Gear^.State);
+            vgtEvilTrace: if Gear^.State < 8 then DrawSprite(sprEvilTrace, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, Gear^.State);
+        end;
             if not cReducedQuality then
                 case Gear^.Kind of
                     vgtSmoke: DrawSprite(sprSmoke, hwRound(Gear^.X) + WorldDx - 11, hwRound(Gear^.Y) + WorldDy - 11, 7 - Gear^.Frame);