Animate: Remove follow arg from AnimVisualGear
authorWuzzy <Wuzzy2@mail.ru>
Tue, 21 Aug 2018 22:31:50 +0200
changeset 13684 739fd039daaa
parent 13681 5662360f6a4a
child 13685 09ea1faf97ca
Animate: Remove follow arg from AnimVisualGear
ChangeLog.txt
share/hedgewars/Data/Scripts/Animate.lua
--- a/ChangeLog.txt	Tue Aug 21 21:02:01 2018 +0200
+++ b/ChangeLog.txt	Tue Aug 21 22:31:50 2018 +0200
@@ -106,6 +106,7 @@
  + New global: cMaxTurnTime. Maximum possible turn time
  + New global: EXPLForceDraw. Flag for Explode function, forces land removal even with gfSolidLand on
  + New globals: capcolDefault, capcolSetting: Default caption colors
+ * Animate library: Remove defunct follow argument for AnimVisualGear
  * Changed global: lfCurrentHog becomes lfCurHogCrate
  * Fixed variable: TotalRounds was -1 (instead of 0) in first real round after hog placement phase
  * AI sometimes intentionally shot hedgehogs with aihDoesntMatter set
--- a/share/hedgewars/Data/Scripts/Animate.lua	Tue Aug 21 21:02:01 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Animate.lua	Tue Aug 21 22:31:50 2018 +0200
@@ -256,11 +256,8 @@
   return true
 end
 
-function AnimVisualGear(gear, x, y, vgType, state, critical, follow)
-  local vgear = AddVisualGear(x, y, vgType, state, critical)
-  if follow == true then 
-    FollowGear(vgear)
-  end
+function AnimVisualGear(gear, x, y, vgType, state, critical)
+  AddVisualGear(x, y, vgType, state, critical)
   return true
 end