|
|
@@ -115,7 +115,7 @@ Rapido.prototype.startNextWordTimer = function() {
|
|
|
var wordEsc = _this.currentWord.replace(/(\w)/g, ' $1').toUpperCase().trimStart();
|
|
|
_this.bot.sendMsg(_this.room, wordEsc);
|
|
|
_this.wordStart = Date.now();
|
|
|
- _this.wordTimeout = setTimeout(_this.onWordTimeout.bind(_this), _this.config.WORD_TIMEOUT);
|
|
|
+ _this.wordTimeout = setTimeout(_this.onWordTimeout.bind(_this), Math.floor(1000 * this.currentWord.length / this.config.WORD_TIMEO_FPS));
|
|
|
}, this.config.NEXT_WORD_DELAY);
|
|
|
}
|
|
|
|