Changed "sm cvars" to "sm convars" in the name of consistency I guess
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40488
This commit is contained in:
		
							parent
							
								
									4f1101a006
								
							
						
					
					
						commit
						d5a7ba694c
					
				@ -54,7 +54,7 @@ void CConVarManager::OnSourceModAllInitialized()
 | 
				
			|||||||
	m_ConVarType = g_HandleSys.CreateType("ConVar", this, 0, NULL, &sec, g_pCoreIdent, NULL);
 | 
						m_ConVarType = g_HandleSys.CreateType("ConVar", this, 0, NULL, &sec, g_pCoreIdent, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Add the 'cvars' option to the 'sm' console command
 | 
						// Add the 'cvars' option to the 'sm' console command
 | 
				
			||||||
	g_RootMenu.AddRootConsoleCommand("cvars", "View convars created by a plugin", this);
 | 
						g_RootMenu.AddRootConsoleCommand("convars", "View convars created by a plugin", this);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void CConVarManager::OnSourceModShutdown()
 | 
					void CConVarManager::OnSourceModShutdown()
 | 
				
			||||||
@ -75,7 +75,7 @@ void CConVarManager::OnSourceModShutdown()
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Remove the 'cvars' option from the 'sm' console command
 | 
						// Remove the 'cvars' option from the 'sm' console command
 | 
				
			||||||
	g_RootMenu.RemoveRootConsoleCommand("cvars", this);
 | 
						g_RootMenu.RemoveRootConsoleCommand("convars", this);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Remove the 'ConVar' handle type
 | 
						// Remove the 'ConVar' handle type
 | 
				
			||||||
	g_HandleSys.RemoveType(m_ConVarType, g_pCoreIdent);
 | 
						g_HandleSys.RemoveType(m_ConVarType, g_pCoreIdent);
 | 
				
			||||||
@ -125,7 +125,7 @@ void CConVarManager::OnRootConsoleCommand(const char *command, unsigned int argc
 | 
				
			|||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		g_RootMenu.ConsolePrint("[SM] Displaying convars for \"%s\":", pl->GetPublicInfo()->name);
 | 
							g_RootMenu.ConsolePrint("[SM] Displaying convars for \"%s\"", pl->GetPublicInfo()->name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Iterate convar list and display each one
 | 
							// Iterate convar list and display each one
 | 
				
			||||||
		for (int i = 0; i < convarnum; i++, id++)
 | 
							for (int i = 0; i < convarnum; i++, id++)
 | 
				
			||||||
@ -138,7 +138,7 @@ void CConVarManager::OnRootConsoleCommand(const char *command, unsigned int argc
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Display usage of subcommand
 | 
						// Display usage of subcommand
 | 
				
			||||||
	g_RootMenu.ConsolePrint("[SM] Usage: sm cvars <#>");
 | 
						g_RootMenu.ConsolePrint("[SM] Usage: sm convars <#>");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Handle_t CConVarManager::CreateConVar(IPluginContext *pContext, const char *name, const char *defaultVal, const char *helpText, int flags, bool hasMin, float min, bool hasMax, float max)
 | 
					Handle_t CConVarManager::CreateConVar(IPluginContext *pContext, const char *name, const char *defaultVal, const char *helpText, int flags, bool hasMin, float min, bool hasMax, float max)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user