mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-02-04 09:15:08 +01:00
bypass full Stage check if reserve slot exists
This commit is contained in:
@@ -150,6 +150,9 @@ func removeSessionFromStage(s *Session) {
|
||||
|
||||
func isStageFull(s *Session, StageID string) bool {
|
||||
if stage, exists := s.server.stages[StageID]; exists {
|
||||
if _, exists := stage.reservedClientSlots[s.charID]; exists {
|
||||
return false
|
||||
}
|
||||
return len(stage.reservedClientSlots)+len(stage.clients) >= int(stage.maxPlayers)
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user