twhl-community / halflife-updated

Half-Life SDK updated to compile under VS2019 and 2022. Check README.md for more information.
Other
386 stars 148 forks source link

Define and use constants for maximum number of players and weapons #96

Closed SamVanheer closed 2 years ago

SamVanheer commented 2 years ago

Define constants for the maximum number of players and weapons supported. There is an existing MAX_PLAYERS constant used by hud code, this should be renamed first to MAX_PLAYERS_HUD since it's defined to be 64 instead of 32.

The maximum number of weapons is defined to be 32 (MAX_WEAPONS), but it's actually 64. Change this value.

The constant MAX_CLIENTS also defines the maximum number of players, replace it with MAX_PLAYERS.

SamVanheer commented 2 years ago

Additional commits: https://github.com/SamVanheer/halflife-updated/commit/e01645e239f730870041bb9e10e728f896b1a736 https://github.com/SamVanheer/halflife-updated/commit/b7b59d7d4abd921d92608625c73a6b4634952f85