1
0
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:
Nicholas Hastings
2013-07-12 02:25:04 -04:00
parent 0ffa0eb6ad
commit b4f7c7966a
9 changed files with 148 additions and 97 deletions

View File

@ -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;
}
}