Skip to content

Commit 26c81ab

Browse files
committed
fix magic numbers
1 parent dc6ad89 commit 26c81ab

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Spawner/ProtocolZero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void ProtocolZero::SendResponseTime2()
4141

4242
if (ProtocolZero::NextSendFrame < 0)
4343
{
44-
ProtocolZero::NextSendFrame = 6 * SendResponseTimeInterval + currentFrame + Game::Network::FrameSendRate;
44+
ProtocolZero::NextSendFrame = SendResponseTimeFrame + currentFrame + Game::Network::FrameSendRate;
4545
return;
4646
}
4747

src/Spawner/ProtocolZero.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class ProtocolZero
2525
{
2626
private:
2727
static constexpr int SendResponseTimeInterval = 30;
28+
static constexpr int SendResponseTimeFrame = 8 * SendResponseTimeInterval;
2829

2930
public:
3031
static bool Enable;

0 commit comments

Comments
 (0)