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
return false, WNOA
end
local t1 = type(p1)
local t2 = type(p2)
if t1 ~= t2 then
return false, "different argument types"
end
if t1 ~= "number"
and t1 ~= "string" then
local p1,p2 = unpack(params)
if type(p1) ~= "number"
or type(p2) ~= "number" then
return false, UAT
end
return true, params[1] < params[2]
return true, p1 < p2
end,
usleep = function(params, faden)