Skip to content

Commit

Permalink
Use CurrentMatchmakingCallID in other protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
shutterbug2000 committed Oct 13, 2023
1 parent 26f22ba commit 74e821b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion matchmaking-ext/end_participation.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func endParticipation(err error, client *nex.Client, callID uint32, idGathering

rmcMessage := nex.NewRMCRequest()
rmcMessage.SetProtocolID(notifications.ProtocolID)
rmcMessage.SetCallID(0xffff0000 + callID)
rmcMessage.SetCallID(common_globals.CurrentMatchmakingCallID.Increment())
rmcMessage.SetMethodID(notifications.MethodProcessNotificationEvent)

category := notifications.NotificationCategories.Participation
Expand Down
2 changes: 1 addition & 1 deletion matchmaking/unregister_gathering.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func unregisterGathering(err error, client *nex.Client, callID uint32, idGatheri

rmcMessage := nex.NewRMCRequest()
rmcMessage.SetProtocolID(notifications.ProtocolID)
rmcMessage.SetCallID(0xffff0000 + callID)
rmcMessage.SetCallID(common_globals.CurrentMatchmakingCallID.Increment())
rmcMessage.SetMethodID(notifications.MethodProcessNotificationEvent)

category := notifications.NotificationCategories.GatheringUnregistered
Expand Down
2 changes: 1 addition & 1 deletion matchmaking/update_session_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func updateSessionHost(err error, client *nex.Client, callID uint32, gid uint32,

rmcMessage := nex.NewRMCRequest()
rmcMessage.SetProtocolID(notifications.ProtocolID)
rmcMessage.SetCallID(0xffff0000 + callID)
rmcMessage.SetCallID(common_globals.CurrentMatchmakingCallID.Increment())
rmcMessage.SetMethodID(notifications.MethodProcessNotificationEvent)

category := notifications.NotificationCategories.OwnershipChanged
Expand Down

0 comments on commit 74e821b

Please sign in to comment.