Move ConCommand hooks into GameHooks and switch callbacks to ICommandArgs.

This commit is contained in:
David Anderson
2015-09-09 18:40:04 -07:00
parent b63bfdc72a
commit b048dc7b10
12 changed files with 169 additions and 66 deletions
+2 -2
View File
@@ -825,7 +825,7 @@ bool CHalfLife2::KVLoadFromFile(KeyValues *kv, IBaseFileSystem *filesystem, cons
}
}
void CHalfLife2::PushCommandStack(const CCommand *cmd)
void CHalfLife2::PushCommandStack(const ICommandArgs *cmd)
{
CachedCommandInfo info;
@@ -837,7 +837,7 @@ void CHalfLife2::PushCommandStack(const CCommand *cmd)
m_CommandStack.push(info);
}
const CCommand *CHalfLife2::PeekCommandStack()
const ICommandArgs *CHalfLife2::PeekCommandStack()
{
if (m_CommandStack.empty())
{