Fix inconsistent name of SetGearAIHints
authorWuzzy <Wuzzy2@mail.ru>
Tue, 20 Feb 2018 14:03:46 +0100
changeset 13041 434bcdd9562c
parent 13040 958c6ff056de
child 13042 3718637c14be
Fix inconsistent name of SetGearAIHints
hedgewars/uScript.pas
share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua
--- a/hedgewars/uScript.pas	Mon Feb 19 17:03:59 2018 +0100
+++ b/hedgewars/uScript.pas	Tue Feb 20 14:03:46 2018 +0100
@@ -2869,7 +2869,7 @@
 function lc_setgearaihints(L : Plua_State) : LongInt; Cdecl;
 var gear: PGear;
 begin
-    if CheckLuaParamCount(L, 2, 'SetAIHintOnGear', 'gearUid, aiHints') then
+    if CheckLuaParamCount(L, 2, 'SetGearAIHints', 'gearUid, aiHints') then
         begin
         gear:= GearByUID(Trunc(lua_tonumber(L, 1)));
         if gear <> nil then
--- a/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Mon Feb 19 17:03:59 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Tue Feb 20 14:03:46 2018 +0100
@@ -510,7 +510,7 @@
 function setAIHints()
     for i = 0, #hhs do
         if mutant == nil or hhs[i] == mutant or CurrentHedgehog == mutant or getGearValue(CurrentHedgehog, "Feeder") then
-            SetGearAIHints(hhs[i], aihUsual)
+            SetGearAIHints(hhs[i], aihUsualProcessing)
         else
             SetGearAIHints(hhs[i], aihDoesntMatter)
         end