Skip to content

Conversation

@themuffinator
Copy link
Owner

Summary

  • clamp the maxclients cvar to the supported range inside InitGame
  • use the clamped value when sizing the client array, globals, and lag buffers to keep allocations within bounds
  • include <algorithm> so std::clamp is available

Testing

  • Not run (not requested)

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants