dtw小程序初速度设置支持小数

This commit is contained in:
MrZ626
2021-09-30 22:32:23 +08:00
parent a61e0086e0
commit 41e4cacdd8

View File

@@ -183,7 +183,7 @@ function reset()
local t=love.system.getClipboardText()
if type(t)=='string'then
t=t:lower():match("^s=(%d+)$")
t=t:lower():match("^s=(.+)")
t=t and tonumber(t)and tonumber(t)*2
t=t and tonumber(t)>=0 and tonumber(t)<=60 and t
end