From 2d70ec5e2d16eebae8cfb543dcb73310a3baf9a2 Mon Sep 17 00:00:00 2001 From: Etoh Date: Thu, 27 Dec 2012 14:32:47 +0000 Subject: [PATCH] Update consoleUI.py - Process relative offset sign --- syncplay/ui/consoleUI.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/syncplay/ui/consoleUI.py b/syncplay/ui/consoleUI.py index 2baa906..419baaa 100644 --- a/syncplay/ui/consoleUI.py +++ b/syncplay/ui/consoleUI.py @@ -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: