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.hx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/VideoTimer.hx b/src/server/VideoTimer.hx
index 695ea5d..7ac51d9 100644
--- a/src/server/VideoTimer.hx
+++ b/src/server/VideoTimer.hx
@@ -18,8 +18,8 @@ class VideoTimer {
public function stop():Void {
isStarted = false;
- startTime = 0.0;
- pauseStartTime = 0.0;
+ startTime = 0;
+ pauseStartTime = 0;
}
public function pause():Void {
@@ -43,7 +43,7 @@ class VideoTimer {
}
public function isPaused():Bool {
- return pauseStartTime != 0;
+ return !isStarted || pauseStartTime != 0;
}
function pauseTime():Float {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage