Update consoleUI.py - Process relative offset sign

This commit is contained in:
Etoh 2012-12-27 14:32:47 +00:00
parent 192153ab63
commit 2d70ec5e2d
1 changed files with 4 additions and 1 deletions

View File

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