Fix doStepHandlers confusion webgl
authorunc0rr
Mon, 06 Jan 2014 01:36:33 +0400
branchwebgl
changeset 9960 fac73b8a52d3
parent 9958 5a222923c8f8
child 9962 97ed501accc5
Fix doStepHandlers confusion
hedgewars/uVisualGearsHandlers.pas
hedgewars/uVisualGearsList.pas
--- a/hedgewars/uVisualGearsHandlers.pas	Sun Jan 05 23:58:13 2014 +0400
+++ b/hedgewars/uVisualGearsHandlers.pas	Mon Jan 06 01:36:33 2014 +0400
@@ -32,7 +32,7 @@
 interface
 uses uTypes;
 
-var doStepHandlers: array[TVisualGearType] of TVGearStepProcedure;
+var doStepVGHandlers: array[TVisualGearType] of TVGearStepProcedure;
 
 procedure doStepFlake(Gear: PVisualGear; Steps: Longword);
 procedure doStepBeeTrace(Gear: PVisualGear; Steps: Longword);
@@ -921,7 +921,7 @@
 
 procedure initModule;
 begin
-    doStepHandlers:= handlers
+    doStepVGHandlers:= handlers
 end;
 
 end.
--- a/hedgewars/uVisualGearsList.pas	Sun Jan 05 23:58:13 2014 +0400
+++ b/hedgewars/uVisualGearsList.pas	Mon Jan 06 01:36:33 2014 +0400
@@ -84,7 +84,7 @@
 gear^.X:= real(X);
 gear^.Y:= real(Y);
 gear^.Kind := Kind;
-gear^.doStep:= doStepHandlers[Kind];
+gear^.doStep:= doStepVGHandlers[Kind];
 gear^.State:= 0;
 gear^.Tint:= $FFFFFFFF;
 gear^.uid:= VGCounter;