12.01.2010, 14:55
What "heavy" functions are you calling and how often are you calling them?
Something else about the MAX_PLAYERS_CURRENT:
What if there are 4 players, ID 0 to ID 3.
MAX_PLAYERS_CURRENT should be 3.
The player with ID 2 disconnects.
A new player connects on ID 2, MAX_PLAYERS_CURRENT gets set to 2.
The player with ID 3 is excluded from the loops!
Something else about the MAX_PLAYERS_CURRENT:
What if there are 4 players, ID 0 to ID 3.
MAX_PLAYERS_CURRENT should be 3.
The player with ID 2 disconnects.
A new player connects on ID 2, MAX_PLAYERS_CURRENT gets set to 2.
The player with ID 3 is excluded from the loops!