From 7b6d4ce699bb07bfedb47b27bf4e4f63eff1e6d1 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Sat, 30 Jun 2007 05:11:13 +0000 Subject: [PATCH] Fix for amb503 - csx module not setting meta result when paused. --- dlls/cstrike/csx/meta_api.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/cstrike/csx/meta_api.cpp b/dlls/cstrike/csx/meta_api.cpp index aa12470a..f5c42512 100755 --- a/dlls/cstrike/csx/meta_api.cpp +++ b/dlls/cstrike/csx/meta_api.cpp @@ -137,7 +137,9 @@ void ServerActivate_Post( edict_t *pEdictList, int edictCount, int clientMax ){ void PlayerPreThink_Post( edict_t *pEntity ) { if ( !isModuleActive() ) - return; + { + RETURN_META(MRES_IGNORED); + } CPlayer *pPlayer = GET_PLAYER_POINTER(pEntity); if (pPlayer->clearStats && pPlayer->clearStats < gpGlobals->time ){ @@ -296,7 +298,9 @@ void StartFrame_Post(){ void SetModel_Post(edict_t *e, const char *m){ if ( !isModuleActive() ) - return; + { + RETURN_META(MRES_IGNORED); + } if ( e->v.owner && m[7]=='w' && m[8]=='_' ){ int w_id = 0;