aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/VideoTimer.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/VideoTimer.hx')
-rw-r--r--src/server/VideoTimer.hx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/VideoTimer.hx b/src/server/VideoTimer.hx
index 311e7f4..ac6a655 100644
--- a/src/server/VideoTimer.hx
+++ b/src/server/VideoTimer.hx
@@ -4,6 +4,7 @@ import haxe.Timer.stamp;
class VideoTimer {
public var isStarted(default, null) = false;
+ public var isServerPause = false;
var startTime = 0.0;
var pauseStartTime = 0.0;
@@ -14,6 +15,7 @@ class VideoTimer {
public function start():Void {
isStarted = true;
+ isServerPause = false;
startTime = stamp();
pauseStartTime = 0;
rateStartTime = stamp();
@@ -21,6 +23,7 @@ class VideoTimer {
public function stop():Void {
isStarted = false;
+ isServerPause = false;
startTime = 0;
pauseStartTime = 0;
}
@@ -38,6 +41,7 @@ class VideoTimer {
public function play():Void {
if (!isStarted) start();
+ isServerPause = false;
startTime += pauseTime();
pauseStartTime = 0;
rateStartTime = stamp();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage