Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onMatchmakingEnd(...data) {
- let [message, param, err] = data;
- let matchmakingInfo = this.props.matchmakingInfo;
- let matchmakingInfoChange = document.getElementById('message-status');
- let gameStartStatus = this.getGameStartStatus();
- let getMatchmakingStartStatus = this.getMatchmakingStartStatus();
- if (param) {
- let countDown = 10;
- let st = setInterval(() => {
- if (countDown == 0) {
- clearInterval(st);
- //Removed commented code - refer to file history.
- if (getMatchmakingStartStatus() === true && gameStartStatus() === false) {
- // #PCF_JP_TODO: Check if it still works
- //this.startGame('No active games could be found at this time. Starting solo game...');
- }
- }
- countDown--;
- }, 1000);
- } else {
- //Removed commented code - refer to file history.
- if (getMatchmakingStartStatus() === true && gameStartStatus() === false) {
- // #PCF_JP_TODO: Check if it still works
- //this.startGame('No active games could be found at this time. Starting solo game...');
- }
- }
- //Removed commented code - refer to file history.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement