equal
deleted
inserted
replaced
572 if lua_gettop(L) <> 3 then |
572 if lua_gettop(L) <> 3 then |
573 LuaError('Lua: Wrong number of parameters passed to SetEffect!') |
573 LuaError('Lua: Wrong number of parameters passed to SetEffect!') |
574 else begin |
574 else begin |
575 gear := GearByUID(lua_tointeger(L, 1)); |
575 gear := GearByUID(lua_tointeger(L, 1)); |
576 if gear <> nil then |
576 if gear <> nil then |
577 gear^.Hedgehog^.Effects[THogEffect(lua_tointeger(L, 2))]:= lua_tointeger(L, 3) <> 0; |
577 gear^.Hedgehog^.Effects[THogEffect(lua_tointeger(L, 2))]:= lua_toboolean(L, 3); |
578 end; |
578 end; |
579 lc_seteffect := 0; |
579 lc_seteffect := 0; |
580 end; |
580 end; |
581 |
581 |
582 function lc_setstate(L : Plua_State) : LongInt; Cdecl; |
582 function lc_setstate(L : Plua_State) : LongInt; Cdecl; |