equal
deleted
inserted
replaced
2867 end; |
2867 end; |
2868 |
2868 |
2869 function lc_setgearaihints(L : Plua_State) : LongInt; Cdecl; |
2869 function lc_setgearaihints(L : Plua_State) : LongInt; Cdecl; |
2870 var gear: PGear; |
2870 var gear: PGear; |
2871 begin |
2871 begin |
2872 if CheckLuaParamCount(L, 2, 'SetAIHintOnGear', 'gearUid, aiHints') then |
2872 if CheckLuaParamCount(L, 2, 'SetGearAIHints', 'gearUid, aiHints') then |
2873 begin |
2873 begin |
2874 gear:= GearByUID(Trunc(lua_tonumber(L, 1))); |
2874 gear:= GearByUID(Trunc(lua_tonumber(L, 1))); |
2875 if gear <> nil then |
2875 if gear <> nil then |
2876 gear^.aihints:= Trunc(lua_tonumber(L, 2)); |
2876 gear^.aihints:= Trunc(lua_tonumber(L, 2)); |
2877 end; |
2877 end; |