Skip to content
Open
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
5 changes: 4 additions & 1 deletion GenOnlineService/Database/Database.MatchHistory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,10 @@ public static async Task<ulong> CreatePlaceholderMatchHistory(
jsonSlots[member.SlotIndex] = JsonSerializer.Serialize(model);

// Observers are not active players
if (model.side != Constants.OBSERVER_SIDE_VALUE)
// This function runs at the start of a match, before observers are assigned
// their actual side value. Observers have PLAYERTEMPLATE_RANDOM (-2) at this
// point, so use that value to identify and exclude them.
if (model.side != -2)
{
if (playersPerTeam.ContainsKey(model.team))
{
Expand Down
Loading