Commit 898e34f2 authored by 18신대성's avatar 18신대성

페이즈관련 조금 수정

parent 9faf947b
...@@ -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