Permalink
Browse files

Revert "fix for when we only have one message type"

This reverts commit c65a8f0.
  • Loading branch information...
Jarrett Chisholm
Jarrett Chisholm committed Oct 10, 2018
1 parent c65a8f0 commit 53162dff134a817d4dffca9380fc1c6a4ddf8e96
Showing with 3 additions and 3 deletions.
  1. +3 −3 yojimbo.cpp
View
@@ -1202,7 +1202,7 @@ namespace yojimbo
Message ** & messages,
int maxMessagesPerPacket )
{
const int maxMessageType = messageFactory.GetNumTypes();
const int maxMessageType = messageFactory.GetNumTypes() - 1;
bool hasMessages = Stream::IsWriting && numMessages != 0;
@@ -1320,7 +1320,7 @@ namespace yojimbo
int maxMessagesPerPacket,
int maxBlockSize )
{
const int maxMessageType = messageFactory.GetNumTypes();
const int maxMessageType = messageFactory.GetNumTypes() - 1;
bool hasMessages = Stream::IsWriting && numMessages != 0;
@@ -1404,7 +1404,7 @@ namespace yojimbo
ChannelPacketData::BlockData & block,
const ChannelConfig & channelConfig )
{
const int maxMessageType = messageFactory.GetNumTypes();
const int maxMessageType = messageFactory.GetNumTypes() - 1;
serialize_bits( stream, block.messageId, 16 );

0 comments on commit 53162df

Please sign in to comment.