mirror of https://github.com/Syncplay/syncplay
Update consoleUI.py - Rationalize rel offset code
This commit is contained in:
parent
829e097b07
commit
92d2a55910
|
@ -66,10 +66,9 @@ class ConsoleUI(threading.Thread):
|
|||
t = utils.parseTime(o.group('time'))
|
||||
if(t is None):
|
||||
return
|
||||
if(sign):
|
||||
if (o.group('sign') == "/"):
|
||||
if (o.group('sign') == "/"):
|
||||
t = self._syncplayClient.getPlayerPosition() - t
|
||||
else:
|
||||
elif(sign):
|
||||
t = self._syncplayClient.getUserOffset() + sign * t
|
||||
self._syncplayClient.setUserOffset(t)
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue