Commit 2c245f69 authored by 18손재민's avatar 18손재민

Merge branch 'server'

parents 064401fc 898e34f2
...@@ -268,7 +268,7 @@ class GameRoom ...@@ -268,7 +268,7 @@ class GameRoom
this.startTime = Date.now(); this.startTime = Date.now();
setTimeout(function() setTimeout(function()
{ {
this.checkPhase(Date.now()); if (this.currentPhase === GameServer.Phase.START) this.checkPhase(Date.now());
}.bind(this), 6000); }.bind(this), 6000);
} }
...@@ -282,16 +282,6 @@ class GameRoom ...@@ -282,16 +282,6 @@ class GameRoom
this.rateArrangePoint = 150; this.rateArrangePoint = 150;
this.announceToRoom('changePhase', GameServer.Phase.MAIN); this.announceToRoom('changePhase', GameServer.Phase.MAIN);
} }
else if (this.phaseChanger < 0)
{
this.phaseChanger = setTimeout(function(room)
{
room.currentPhase = GameServer.Phase.MAIN;
room.rateArrangePoint = 150;
room.announceToRoom('changePhase', GameServer.Phase.MAIN);
room.phaseChanger = -1;
}, 60000 - (checkTime - this.startTime), this);
}
} }
else if (this.currentPhase === GameServer.Phase.MAIN) else if (this.currentPhase === GameServer.Phase.MAIN)
{ {
......
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