fixing stuff.

This commit is contained in:
Jonathan Payne
2011-02-27 16:47:20 -08:00
parent 8be622c969
commit d404736c33
5 changed files with 84 additions and 6 deletions
+16
View File
@@ -123,6 +123,22 @@ function table.deviation( t )
end
return offset
end
-- See if this exists
function table.search( t, sFind )
for i=1,#t do
if t[i] == sFind then
return true
end
end
end
-- Retreive the entry that has this
function table.find( t, sFind )
for i=1,#t do
if t[i] == sFind then
return i
end
end
end
function round(val, decimal)
if (decimal) then