mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 14:04:25 -05:00
Fix round winner nulling logic
This commit is contained in:
parent
fca142eb34
commit
0f3259d14a
@ -19,6 +19,8 @@ export default {
|
||||
layer: layer ? layer.layer : null
|
||||
};
|
||||
|
||||
delete logParser.eventStore.WON;
|
||||
|
||||
/* Emit new game event */
|
||||
logParser.server.emit(NEW_GAME, data);
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ export default {
|
||||
layer: args[4]
|
||||
};
|
||||
|
||||
if (logParser.eventStore.WON) logParser.eventStore.WON = data;
|
||||
else logParser.eventStore.WON = { ...data, winner: null };
|
||||
if (logParser.eventStore.WON) logParser.eventStore.WON = { ...data, winner: null };
|
||||
else logParser.eventStore.WON = data;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user