[raknet] Match RakPeer::UnregisterAsRemoteProcedureCall(...)

This commit is contained in:
RD42 2024-08-19 21:40:01 +08:00
parent d685d6a6d6
commit 1af47512f6

View File

@ -1106,7 +1106,7 @@ void RakPeer::RegisterClassMemberRPC( char* uniqueID, void *functionPointer )
// -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
void RakPeer::UnregisterAsRemoteProcedureCall( char* uniqueID ) void RakPeer::UnregisterAsRemoteProcedureCall( char* uniqueID )
{ {
if ( uniqueID == 0 || uniqueID[ 0 ] == 0 ) /*if ( uniqueID == 0 || uniqueID[ 0 ] == 0 )
return; return;
// Don't call this while running because if you remove RPCs and add them they will not match the indices on the other systems anymore // Don't call this while running because if you remove RPCs and add them they will not match the indices on the other systems anymore
@ -1117,7 +1117,7 @@ void RakPeer::UnregisterAsRemoteProcedureCall( char* uniqueID )
rpcMap.RemoveNode(uniqueID); rpcMap.RemoveNode(uniqueID);
/*
char uppercaseUniqueID[ 256 ]; char uppercaseUniqueID[ 256 ];
strcpy( uppercaseUniqueID, uniqueID ); strcpy( uppercaseUniqueID, uniqueID );