hedgewars/uScript.pas
changeset 5052 74a81c276d67
parent 5016 9347d82a26cc
child 5072 863b9fe83c2f
equal deleted inserted replaced
5051:7b5fa8d3c904 5052:74a81c276d67
  1285             sprAmGirder, lua_tointeger(L, 3), true, false);
  1285             sprAmGirder, lua_tointeger(L, 3), true, false);
  1286     lc_placegirder:= 0
  1286     lc_placegirder:= 0
  1287 end;
  1287 end;
  1288 
  1288 
  1289 function lc_getcurammotype(L : Plua_State): LongInt; Cdecl;
  1289 function lc_getcurammotype(L : Plua_State): LongInt; Cdecl;
  1290 var gear : PGear;
       
  1291 begin
  1290 begin
  1292     if lua_gettop(L) <> 0 then
  1291     if lua_gettop(L) <> 0 then
  1293         LuaError('Lua: Wrong number of parameters passed to GetCurAmmoType!')
  1292         LuaError('Lua: Wrong number of parameters passed to GetCurAmmoType!')
  1294     else
  1293     else
  1295         lua_pushinteger(L, ord(CurrentHedgehog^.CurAmmoType));
  1294         lua_pushinteger(L, ord(CurrentHedgehog^.CurAmmoType));