equal
deleted
inserted
replaced
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)); |