mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Did a pass of updating/fixing now that symbol info is available.
This commit is contained in:
@ -591,13 +591,13 @@ bool ConCommand::IsCommand( void ) const
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Invoke the function if there is one
|
||||
//-----------------------------------------------------------------------------
|
||||
void ConCommand::Dispatch( void *pUnknown, const CCommand &command )
|
||||
void ConCommand::Dispatch( const CCommandContext &context, const CCommand &command )
|
||||
{
|
||||
if ( m_bUsingNewCommandCallback )
|
||||
{
|
||||
if ( m_fnCommandCallback )
|
||||
{
|
||||
( *m_fnCommandCallback )( pUnknown, command );
|
||||
( *m_fnCommandCallback )( context, command );
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -613,7 +613,7 @@ void ConCommand::Dispatch( void *pUnknown, const CCommand &command )
|
||||
{
|
||||
if ( m_pCommandCallback2 )
|
||||
{
|
||||
m_pCommandCallback2->CommandCallback( pUnknown, command );
|
||||
m_pCommandCallback2->CommandCallback( context, command );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user