mirror of
https://github.com/rehlds/rehlds.git
synced 2025-04-23 14:53:30 +03:00
API game message manager: fix typo
This commit is contained in:
parent
45fe816fdd
commit
a2953ea374
@ -421,7 +421,7 @@ void MessageImpl::setParamPrimitive(size_t index, T value, bool sign)
|
|||||||
break;
|
break;
|
||||||
case IMessage::ParamType::Angle:
|
case IMessage::ParamType::Angle:
|
||||||
// Convert angle value to byte representation with loss of precision
|
// Convert angle value to byte representation with loss of precision
|
||||||
*(uint8 *)pbuf = (int64)(fmod((double)value, 360.0) * 256.0 / 360.0) & 0xff;
|
setValue<uint8>(pbuf, (int64)(fmod((double)value, 360.0) * 256.0 / 360.0) & 0xff);
|
||||||
break;
|
break;
|
||||||
case IMessage::ParamType::Coord:
|
case IMessage::ParamType::Coord:
|
||||||
// Convert coordinate value to short integer representation with loss of precision
|
// Convert coordinate value to short integer representation with loss of precision
|
||||||
@ -1051,7 +1051,7 @@ void EXT_FUNC PF_WriteCoord_Intercept(float flValue)
|
|||||||
|
|
||||||
void EXT_FUNC PF_WriteString_Intercept(const char *sz)
|
void EXT_FUNC PF_WriteString_Intercept(const char *sz)
|
||||||
{
|
{
|
||||||
if (MessageManager().WriteParam(IMessage::ParamType::String, sz ? Q_strlen(sz) + 1 : 1))
|
if (MessageManager().WriteParam(IMessage::ParamType::String, false, sz ? Q_strlen(sz) + 1 : 1))
|
||||||
PF_WriteString_I(sz);
|
PF_WriteString_I(sz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user