More async conversions

This commit is contained in:
mmorrison 2019-01-09 05:35:11 -06:00
parent 77b2cc1c7f
commit 9b8423b20a
15 changed files with 859 additions and 704 deletions

View file

@ -6,9 +6,10 @@ class Jc2mp extends Gamespy3 {
constructor() {
super();
this.useOnlySingleSplit = true;
this.isJc2mp = true;
}
finalizeState(state) {
super.finalizeState(state);
async run(state) {
super.run(state);
if(!state.players.length && parseInt(state.raw.numplayers)) {
for(let i = 0; i < parseInt(state.raw.numplayers); i++) {
state.players.push({});