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-26 16:10:24 +09:00
committed by Diogo Franco (Kovensky)
parent 909c4d7711
commit 295fdeb086
+1 -1
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)