SelfMute: Only loop through the max number of slots
...instead of MAXPLAYERS, which is statically 65.
This commit is contained in:
		
							parent
							
								
									23b9a6ae67
								
							
						
					
					
						commit
						3196094ae3
					
				| @ -129,7 +129,7 @@ public void OnLibraryRemoved(const char[] name) { OnLibrary(name, false); } | |||||||
| public void OnClientPutInServer(int client) | public void OnClientPutInServer(int client) | ||||||
| { | { | ||||||
| 	g_SpecialMutes[client] = MUTE_NONE; | 	g_SpecialMutes[client] = MUTE_NONE; | ||||||
| 	for(int i = 1; i < MAXPLAYERS; i++) | 	for(int i = 1; i < MaxClients; i++) | ||||||
| 	{ | 	{ | ||||||
| 		SetIgnored(client, i, false); | 		SetIgnored(client, i, false); | ||||||
| 		SetExempt(client, i, false); | 		SetExempt(client, i, false); | ||||||
| @ -147,7 +147,7 @@ public void OnClientPutInServer(int client) | |||||||
| public void OnClientDisconnect(int client) | public void OnClientDisconnect(int client) | ||||||
| { | { | ||||||
| 	g_SpecialMutes[client] = MUTE_NONE; | 	g_SpecialMutes[client] = MUTE_NONE; | ||||||
| 	for(int i = 1; i < MAXPLAYERS; i++) | 	for(int i = 1; i < MaxClients; i++) | ||||||
| 	{ | 	{ | ||||||
| 		SetIgnored(client, i, false); | 		SetIgnored(client, i, false); | ||||||
| 		SetExempt(client, i, false); | 		SetExempt(client, i, false); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user