hedgewars/uScript.pas
changeset 11617 aed348042a77
parent 11569 294ce0fa65d0
child 11677 6a1170def888
equal deleted inserted replaced
11616:5b31f61e0723 11617:aed348042a77
  2601     if CheckLuaParamCount(L, 1, call, params) then
  2601     if CheckLuaParamCount(L, 1, call, params) then
  2602         begin
  2602         begin
  2603 
  2603 
  2604         case lua_tointeger(L, 1) of
  2604         case lua_tointeger(L, 1) of
  2605             HaltTestSuccess : rstring:= 'Success';
  2605             HaltTestSuccess : rstring:= 'Success';
  2606             HaltTestLuaError: rstring:= 'FAILED';
  2606             HaltTestFailed: rstring:= 'FAILED';
  2607         else
  2607         else
  2608             begin
  2608             begin
  2609             LuaCallError('Parameter must be either ' + params, call, params);
  2609             LuaCallError('Parameter must be either ' + params, call, params);
  2610             exit(0);
  2610             exit(0);
  2611             end;
  2611             end;