lua: do not use math.pow()

It's the first thing that breaks with Lua 5.3. I don't know if there
are other failures because I don't care enough.
This commit is contained in:
wm4 2015-01-25 01:23:29 +01:00
parent 99c856d3cd
commit 9cba451949
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function ass_mt.draw_stop(ass)
end
function ass_mt.coord(ass, x, y)
local scale = math.pow(2, ass.scale - 1)
local scale = 2 ^ (ass.scale - 1)
local ix = math.ceil(x * scale)
local iy = math.ceil(y * scale)
ass.text = string.format("%s %d %d", ass.text, ix, iy)