fix weird nonsense less instruction code

M  standardbefehlssatz.lua
This commit is contained in:
HybridDog 2016-12-29 22:37:03 +01:00
parent 79fd928b68
commit 4b5455dcc6
1 changed files with 4 additions and 8 deletions

View File

@ -201,16 +201,12 @@ s = {
if #params ~= 2 then if #params ~= 2 then
return false, WNOA return false, WNOA
end end
local t1 = type(p1) local p1,p2 = unpack(params)
local t2 = type(p2) if type(p1) ~= "number"
if t1 ~= t2 then or type(p2) ~= "number" then
return false, "different argument types"
end
if t1 ~= "number"
and t1 ~= "string" then
return false, UAT return false, UAT
end end
return true, params[1] < params[2] return true, p1 < p2
end, end,
usleep = function(params, faden) usleep = function(params, faden)