Hide MRES_SUPERCEDE from command hook callbacks.

This commit is contained in:
David Anderson
2015-09-09 18:45:20 -07:00
parent b048dc7b10
commit 5757b729ac
4 changed files with 19 additions and 16 deletions
+3 -1
View File
@@ -169,8 +169,10 @@ void CommandHook::Dispatch(DISPATCH_ARGS)
EngineArgs args(command);
AddRef();
callback_(&args);
bool rval = callback_(&args);
Release();
if (rval)
RETURN_META(MRES_SUPERCEDE);
}
void CommandHook::Zap()