Skip to content

Commit

Permalink
net: trying to fix block serialization when sending to older clients
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenijM86 committed Jan 10, 2019
1 parent 2aca1e2 commit ffbb5df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/netmessagemaker.h
Expand Up @@ -19,7 +19,8 @@ class CNetMsgMaker
{
CSerializedNetMsg msg;
msg.command = std::move(sCommand);
CVectorWriter{ SER_NETWORK | SER_POSMARKER, nFlags | nVersion, msg.data, 0, std::forward<Args>(args)... };
int32_t serModes = nVersion <= OLD_VERSION ? SER_NETWORK : SER_NETWORK | SER_POSMARKER;
CVectorWriter{ serModes, nFlags | nVersion, msg.data, 0, std::forward<Args>(args)... };
return msg;
}

Expand Down

0 comments on commit ffbb5df

Please sign in to comment.