Fixed uint8_t displaying as char
This commit is contained in:
parent
ce51a094c2
commit
3752aecfa4
@ -31,6 +31,7 @@ namespace NetHandlers
|
|||||||
|
|
||||||
void Net_SignonState_ToString_Internal(std::ostringstream& out, NetMsg::Net_SignonState* data)
|
void Net_SignonState_ToString_Internal(std::ostringstream& out, NetMsg::Net_SignonState* data)
|
||||||
{
|
{
|
||||||
out << "net_SignonState: state " << data->signonState << ", count " << data->spawnCount;
|
out << "net_SignonState: state " << static_cast<uint32_t>(data->signonState)
|
||||||
|
<< ", count " << data->spawnCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,6 +99,6 @@ namespace NetHandlers
|
|||||||
<< ", entries " << data->numEntries
|
<< ", entries " << data->numEntries
|
||||||
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits)
|
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits)
|
||||||
<< " userdatasize " << data->userDataSize
|
<< " userdatasize " << data->userDataSize
|
||||||
<< " userdatabits " << data->userDataSizeBits;
|
<< " userdatabits " << static_cast<uint32_t>(data->userDataSizeBits);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ namespace NetHandlers
|
|||||||
|
|
||||||
void SVC_Sounds_ToString_Internal(std::ostringstream& out, NetMsg::SVC_Sounds* data)
|
void SVC_Sounds_ToString_Internal(std::ostringstream& out, NetMsg::SVC_Sounds* data)
|
||||||
{
|
{
|
||||||
out << "svc_Sounds: number " << data->numSounds
|
out << "svc_Sounds: number " << static_cast<uint32_t>(data->numSounds)
|
||||||
<< (data->reliableSound ? ", reliable" : "")
|
<< (data->reliableSound ? ", reliable" : "")
|
||||||
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits);
|
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits);
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ namespace NetHandlers
|
|||||||
|
|
||||||
void SVC_UserMessage_ToString_Internal(std::ostringstream& out, NetMsg::SVC_UserMessage* data)
|
void SVC_UserMessage_ToString_Internal(std::ostringstream& out, NetMsg::SVC_UserMessage* data)
|
||||||
{
|
{
|
||||||
out << "svc_UserMessage: type " << data->msgType
|
out << "svc_UserMessage: type " << static_cast<uint32_t>(data->msgType)
|
||||||
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits);
|
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ namespace NetHandlers
|
|||||||
|
|
||||||
void SVC_VoiceData_ToString_Internal(std::ostringstream& out, NetMsg::SVC_VoiceData* data)
|
void SVC_VoiceData_ToString_Internal(std::ostringstream& out, NetMsg::SVC_VoiceData* data)
|
||||||
{
|
{
|
||||||
out << "svc_VoiceData: client " << data->fromClientIndex
|
out << "svc_VoiceData: client " << static_cast<uint32_t>(data->fromClientIndex)
|
||||||
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits);
|
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,6 @@ namespace NetHandlers
|
|||||||
void SVC_VoiceInit_ToString_Internal(std::ostringstream& out, NetMsg::SVC_VoiceInit* data)
|
void SVC_VoiceInit_ToString_Internal(std::ostringstream& out, NetMsg::SVC_VoiceInit* data)
|
||||||
{
|
{
|
||||||
out << "svc_VoiceInit: codec \"" << data->voiceCodec
|
out << "svc_VoiceInit: codec \"" << data->voiceCodec
|
||||||
<< "\", qualitty " << data->quality;
|
<< "\", qualitty " << static_cast<uint32_t>(data->quality);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user