]> git.sesse.net Git - ultimatescore/blobdiff - score.js
Make the client capable of setting the clock limit. (Untested right now.)
[ultimatescore] / score.js
index f2534d114377a2ad9762a5d36f969ebfcdbd88c9..deae9d8ad9824a4da5c7e7e514daaeb1049e193f 100644 (file)
--- a/score.js
+++ b/score.js
@@ -63,6 +63,12 @@ function setclockfromstate()
        setclock(amount);
 }
 
+function setclocklimitfromstate()
+{
+       let amount = parseInt(state['clock_limit_min']) * 60 + parseInt(state['clock_limit_sec']);
+       clock_limit = amount;
+}
+
 function showclock()
 {
        if (clock_visible) return;