Skip to content

Commit

Permalink
Coop - send right information to the server for leaderboards
Browse files Browse the repository at this point in the history
After some digging in the old coop code I found that it was never
sending campaignID or difficulty. Difficulty will have to be included in
the future since it can be actually chanced now.

For now this could fix the leaderboards until they are reworked.

Server code:
https://github.com/FAForever/server/blob/08708002094aa1a9ca79065a436bdaa53287fa78/server/gameconnection.py#L337
  • Loading branch information
speed2CZ authored and aeoncleanse committed Oct 6, 2016
1 parent 87a2104 commit 63f6c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schook/lua/UserSync.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ OnSync = function()

if Sync.OperationComplete then
if Sync.OperationComplete.success then
GpgNetSend('OperationComplete', Sync.OperationComplete.campaignID, Sync.OperationComplete.difficulty, Sync.OperationComplete.allPrimary, Sync.OperationComplete.allSecondary, GetGameTime())
GpgNetSend('OperationComplete', Sync.OperationComplete.allPrimary, Sync.OperationComplete.allSecondary, GetGameTime())
end
import('/lua/ui/campaign/campaignmanager.lua').OperationVictory(Sync.OperationComplete)
end
Expand Down

0 comments on commit 63f6c12

Please sign in to comment.