Allow unlimited number of players
This is important for public servers. Setting the MAXPLAYERS sysconf value to 0 (or commenting it out) constructs the lock files with the player UID and player name, so each player may have one game at a time.
This commit is contained in:
@@ -2279,7 +2279,7 @@ int src;
|
||||
} else if (src == SET_IN_SYS && match_varname(buf, "MAXPLAYERS", 10)) {
|
||||
n = atoi(bufp);
|
||||
/* XXX to get more than 25, need to rewrite all lock code */
|
||||
if (n < 1 || n > 25) {
|
||||
if (n < 0 || n > 25) {
|
||||
raw_printf("Illegal value in MAXPLAYERS (maximum is 25).");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user