From 5d6c72bf426afa21862f8440df36ff201557ea9b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 30 Aug 2005 07:18:47 +0000 Subject: [PATCH] Patch for pausing issues --- amxmodx/CPlugin.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/amxmodx/CPlugin.h b/amxmodx/CPlugin.h index 21b60144..3e90468f 100755 --- a/amxmodx/CPlugin.h +++ b/amxmodx/CPlugin.h @@ -39,10 +39,10 @@ enum { ps_bad_load, ps_error, - ps_paused, - ps_running, - ps_stopped, ps_locked, + ps_paused, + ps_stopped, + ps_running, }; class CPluginMngr @@ -89,9 +89,8 @@ public: inline void setAuthor( const char* n ) { author.assign(n); } inline void setVersion( const char* n ) { version.assign(n); } inline void setError( const char* n ) { errorMsg.assign(n); } - inline bool isValid() const { return ((status == ps_running || status == ps_paused)); } - inline bool isPaused() const { return ( (status == ps_paused) ); } - //inline bool isFunctionPaused( int id ) const { return (paused_fun & (1<= ps_paused); } + inline bool isPaused() const { return ( (status == ps_paused) || (status == ps_stopped) ); } inline bool isExecutable(int id) const { return (isValid() && !isPaused()); } void Finalize(); void pausePlugin();