hedgewars/uScript.pas
changeset 10249 b47ac2c19de3
parent 10239 ed8bab6e92ba
child 10278 cf3ff506734e
equal deleted inserted replaced
10248:7b9b44a051f8 10249:b47ac2c19de3
  2099     ScriptGetString:= lua_tostring(luaState, -1);
  2099     ScriptGetString:= lua_tostring(luaState, -1);
  2100     lua_pop(luaState, 1);
  2100     lua_pop(luaState, 1);
  2101 end;
  2101 end;
  2102 
  2102 
  2103 procedure ScriptOnPreviewInit;
  2103 procedure ScriptOnPreviewInit;
  2104 var i, j, k: LongInt;
       
  2105 begin
  2104 begin
  2106 // not required if there is no script to run
  2105 // not required if there is no script to run
  2107 if not ScriptLoaded then
  2106 if not ScriptLoaded then
  2108     exit;
  2107     exit;
  2109 
  2108