Update consoleUI.py - Rationalize rel offset code

This commit is contained in:
Etoh 2012-12-27 16:16:58 +00:00
parent 829e097b07
commit 92d2a55910
1 changed files with 2 additions and 3 deletions

View File

@ -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