Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqt enum typo fix #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Assets/Scripts/Networking/Editor/Tests/SQPTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void SQP_SerializeChallangeRequest_NoError()
var rcv = new ChallangeRequest();
rcv.FromStream(reader, ref context);

Assert.AreEqual((byte)SQPMessageType.ChallangeRequest, rcv.Header.Type);
Assert.AreEqual((byte)SQPMessageType.ChallengeRequest, rcv.Header.Type);
}

[Test]
Expand Down
6 changes: 3 additions & 3 deletions Assets/Scripts/Networking/SQP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public enum SQPChunkType

public enum SQPMessageType
{
ChallangeRequest = 0,
ChallengeRequest = 0,
ChallangeResponse = 0,
QueryRequest = 1,
QueryResponse = 1
Expand Down Expand Up @@ -60,7 +60,7 @@ public struct ChallangeRequest : ISQPMessage

public void ToStream(ref DataStreamWriter writer)
{
Header.Type = (byte)SQPMessageType.ChallangeRequest;
Header.Type = (byte)SQPMessageType.ChallengeRequest;
Header.ToStream(ref writer);
}

Expand Down Expand Up @@ -505,7 +505,7 @@ public void Update()

switch (type)
{
case SQPMessageType.ChallangeRequest:
case SQPMessageType.ChallengeRequest:
{
if (!m_OutstandingTokens.ContainsKey(endpoint))
{
Expand Down