don't set timings less than 0
This commit is contained in:
parent
a2f9c367b1
commit
6cbf9ac3c5
|
@ -384,7 +384,7 @@ main_menu.keybindings = {
|
||||||
}
|
}
|
||||||
|
|
||||||
function main_menu:set_time(property)
|
function main_menu:set_time(property)
|
||||||
self.timings[property] = mp.get_property_number('time-pos')
|
self.timings[property] = math.max(0, mp.get_property_number('time-pos'))
|
||||||
self:update()
|
self:update()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ function main_menu:set_time_sub(property)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
self.timings[property] = time_pos + sub_delay
|
self.timings[property] = math.max(0, time_pos + sub_delay)
|
||||||
self:update()
|
self:update()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue