QR2: Don't increment join index for existing players

This commit is contained in:
mkwcat
2024-01-04 16:52:43 -05:00
parent 5632477f79
commit e48a96cf93

View File

@@ -75,11 +75,14 @@ func processResvOK(moduleName string, matchVersion int, reservation common.Match
logging.Notice(moduleName, "Created new group", aurora.Cyan(group.GroupName))
}
// TODO: Check if the sender is the actual server (host) once host migration works
// Keep group ID updated
group.GroupID = resvOK.GroupID
if group.Players[destination] {
// Player is already in the group
return true
}
logging.Info(moduleName, "New player", aurora.BrightCyan(destination.Data["dwc_pid"]), "in group", aurora.Cyan(group.GroupName))
group.LastJoinIndex++