Commit 67126c06 authored by mercury233's avatar mercury233

fix

parent 68bd3d06
......@@ -125,7 +125,7 @@ class Room
else
@hostinfo.lflist = 0
if ((param = rule.charAt(3).match(/\d/)) > 0)
if ((param = parseInt(rule.charAt(3).match(/\d/))) > 0)
@hostinfo.time_limit=param*60
switch rule.charAt(4)
......@@ -146,13 +146,13 @@ class Room
else
@hostinfo.no_shuffle_deck = false
if ((param = rule.charAt(7).match(/\d/)) > 0)
if ((param = parseInt(rule.charAt(7).match(/\d/))) > 0)
@hostinfo.start_lp=param*4000
if ((param = rule.charAt(8).match(/\d/)) > 0)
if ((param = parseInt(rule.charAt(8).match(/\d/))) > 0)
@hostinfo.start_hand=param
if ((param = rule.charAt(3).match(/\d/)) >= 0)
if ((param = parseInt(rule.charAt(9).match(/\d/))) >= 0)
@hostinfo.draw_count=param
else if ((param = name.match /(.+)#/) != null)
......
......@@ -150,7 +150,7 @@
default:
this.hostinfo.lflist = 0;
}
if ((param = rule.charAt(3).match(/\d/)) > 0) {
if ((param = parseInt(rule.charAt(3).match(/\d/))) > 0) {
this.hostinfo.time_limit = param * 60;
}
switch (rule.charAt(4)) {
......@@ -177,13 +177,13 @@
default:
this.hostinfo.no_shuffle_deck = false;
}
if ((param = rule.charAt(7).match(/\d/)) > 0) {
if ((param = parseInt(rule.charAt(7).match(/\d/))) > 0) {
this.hostinfo.start_lp = param * 4000;
}
if ((param = rule.charAt(8).match(/\d/)) > 0) {
if ((param = parseInt(rule.charAt(8).match(/\d/))) > 0) {
this.hostinfo.start_hand = param;
}
if ((param = rule.charAt(3).match(/\d/)) >= 0) {
if ((param = parseInt(rule.charAt(9).match(/\d/))) >= 0) {
this.hostinfo.draw_count = param;
}
} else if ((param = name.match(/(.+)#/)) !== null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment