@@ -364,7 +364,7 @@ protected void InitSyncObject(SyncObject syncObject)
364364 }
365365
366366 // pass full function name to avoid ClassA.Func <-> ClassB.Func collisions
367- protected void SendCommandInternal ( string functionFullName , int functionHashCode , NetworkWriter writer , int channelId , bool requiresAuthority = true )
367+ protected void SendCommandInternal ( string functionFullName , ushort functionHashCode , NetworkWriter writer , int channelId , bool requiresAuthority = true )
368368 {
369369 // this was in Weaver before
370370 // NOTE: we could remove this later to allow calling Cmds on Server
@@ -418,7 +418,7 @@ protected void SendCommandInternal(string functionFullName, int functionHashCode
418418 netId = netId ,
419419 componentIndex = ComponentIndex ,
420420 // type+func so Inventory.RpcUse != Equipment.RpcUse
421- functionHash = ( ushort ) functionHashCode ,
421+ functionHash = functionHashCode ,
422422 // segment to avoid reader allocations
423423 payload = writer . ToArraySegment ( )
424424 } ;
@@ -434,7 +434,7 @@ protected void SendCommandInternal(string functionFullName, int functionHashCode
434434 }
435435
436436 // pass full function name to avoid ClassA.Func <-> ClassB.Func collisions
437- protected void SendRPCInternal ( string functionFullName , int functionHashCode , NetworkWriter writer , int channelId , bool includeOwner )
437+ protected void SendRPCInternal ( string functionFullName , ushort functionHashCode , NetworkWriter writer , int channelId , bool includeOwner )
438438 {
439439 // this was in Weaver before
440440 if ( ! NetworkServer . active )
@@ -456,7 +456,7 @@ protected void SendRPCInternal(string functionFullName, int functionHashCode, Ne
456456 netId = netId ,
457457 componentIndex = ComponentIndex ,
458458 // type+func so Inventory.RpcUse != Equipment.RpcUse
459- functionHash = ( ushort ) functionHashCode ,
459+ functionHash = functionHashCode ,
460460 // segment to avoid reader allocations
461461 payload = writer . ToArraySegment ( )
462462 } ;
@@ -488,7 +488,7 @@ protected void SendRPCInternal(string functionFullName, int functionHashCode, Ne
488488 }
489489
490490 // pass full function name to avoid ClassA.Func <-> ClassB.Func collisions
491- protected void SendTargetRPCInternal ( NetworkConnection conn , string functionFullName , int functionHashCode , NetworkWriter writer , int channelId )
491+ protected void SendTargetRPCInternal ( NetworkConnection conn , string functionFullName , ushort functionHashCode , NetworkWriter writer , int channelId )
492492 {
493493 if ( ! NetworkServer . active )
494494 {
@@ -527,7 +527,7 @@ protected void SendTargetRPCInternal(NetworkConnection conn, string functionFull
527527 netId = netId ,
528528 componentIndex = ComponentIndex ,
529529 // type+func so Inventory.RpcUse != Equipment.RpcUse
530- functionHash = ( ushort ) functionHashCode ,
530+ functionHash = functionHashCode ,
531531 // segment to avoid reader allocations
532532 payload = writer . ToArraySegment ( )
533533 } ;
0 commit comments