Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/playfab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ void PlayfabUser_t::gameEnd()
eventContent.Payload["class"] = client_classes[clientnum];
eventContent.Payload["multiplayer"] = multiplayer;
eventContent.Payload["victory"] = victory;
eventContent.Payload["level"] = currentlevel;
eventContent.Payload["secret"] = secretlevel;
int players = 1;
if ( multiplayer == SERVER || (multiplayer == SINGLE && splitscreen) )
{
Expand Down Expand Up @@ -193,6 +195,20 @@ void PlayfabUser_t::globalStat(int index, int player)
eventContent.Payload["stat"] = SteamGlobalStatStr[index].c_str();
eventContent.Payload["level"] = currentlevel;
eventContent.Payload["secret"] = secretlevel;
eventContent.Payload["multiplayer"] = multiplayer;
eventContent.Payload["version"] = VERSION;
int players = 1;
if ( multiplayer == SERVER || (multiplayer == SINGLE && splitscreen) )
{
for ( int i = 1; i < MAXPLAYERS; ++i )
{
if ( !client_disconnected[i] )
{
++players;
}
}
}
eventContent.Payload["numplayers"] = players;
if ( player >= 0 && player < MAXPLAYERS && !client_disconnected[player] )
{
eventContent.Payload["class"] = client_classes[player];
Expand Down
2 changes: 1 addition & 1 deletion src/scores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5342,7 +5342,7 @@ SteamGlobalStatIndexes getIndexForDeathType(int type)
case LICH_ICE:
return STEAM_GSTAT_DEATHS_LICHICE;
case LICH_FIRE:
return STEAM_GSTAT_DEATHS_LICHICE;
return STEAM_GSTAT_DEATHS_LICHFIRE;
case SENTRYBOT:
return STEAM_GSTAT_DEATHS_SENTRYBOT;
case SPELLBOT:
Expand Down
Loading