mirror of
https://github.com/bdnugget/nbnet.git
synced 2026-11-07 05:27:27 +00:00
fix RPC message not being properly handled on client side
This commit is contained in:
1 parent
fadfa5d3c9
commit
75cfb93bee
1 file changed
+6
@@ -4997,6 +4997,12 @@ static int GameClient_HandleMessageReceivedEvent(void)
|
||||
memcpy(nbn_game_client.server_data, accepted_msg->data, accepted_msg->length);
|
||||
nbn_game_client.server_data_len = accepted_msg->length;
|
||||
}
|
||||
else if (message_info.type == NBN_RPC_MESSAGE_TYPE)
|
||||
{
|
||||
ret = NBN_NO_EVENT;
|
||||
|
||||
Connection_HandleReceivedRPC(nbn_game_client.server_connection->id, &nbn_game_client.endpoint, (NBN_RPC_Message *)message_info.data);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = NBN_MESSAGE_RECEIVED;
|
||||
|
||||
Reference in new issue
Block a user