mirror of https://github.com/Syncplay/syncplay
Update consoleUI.py - Process relative offset sign
This commit is contained in:
parent
192153ab63
commit
2d70ec5e2d
|
@ -67,7 +67,10 @@ class ConsoleUI(threading.Thread):
|
|||
if(t is None):
|
||||
return
|
||||
if(sign):
|
||||
t = self._syncplayClient.getUserOffset() + sign * t
|
||||
if (o.group('sign') == "/"):
|
||||
t = t - self._syncplayClient.getPlayerPosition()
|
||||
else:
|
||||
t = self._syncplayClient.getUserOffset() + sign * t
|
||||
self._syncplayClient.setUserOffset(t)
|
||||
return True
|
||||
elif s:
|
||||
|
|
Loading…
Reference in New Issue