diff --git a/sp/src/game/shared/ai_responsesystem_new.cpp b/sp/src/game/shared/ai_responsesystem_new.cpp index e703775f..4dbf8222 100644 --- a/sp/src/game/shared/ai_responsesystem_new.cpp +++ b/sp/src/game/shared/ai_responsesystem_new.cpp @@ -1078,7 +1078,6 @@ public: const Rule &rule = rs.m_RulePartitions[ idx ]; bool bEnabled = rule.m_bEnabled; - Msg( "%s: %i\n", rs.m_RulePartitions.GetElementName( idx ), idx ); pSave->WriteBool( &bEnabled ); pSave->EndBlock(); diff --git a/sp/src/public/responserules/response_types.h b/sp/src/public/responserules/response_types.h index 4ec62cee..a3e8fea3 100644 --- a/sp/src/public/responserules/response_types.h +++ b/sp/src/public/responserules/response_types.h @@ -326,6 +326,9 @@ namespace ResponseRules void GetName( char *buf, size_t buflen ) const; void GetResponse( char *buf, size_t buflen ) const; +#ifdef MAPBASE + void GetRule( char *buf, size_t buflen ) const; +#endif const char* GetNamePtr() const; const char* GetResponsePtr() const; const ResponseParams *GetParams() const { return &m_Params; } diff --git a/sp/src/responserules/runtime/rr_response.cpp b/sp/src/responserules/runtime/rr_response.cpp index 6124805c..3be0710e 100644 --- a/sp/src/responserules/runtime/rr_response.cpp +++ b/sp/src/responserules/runtime/rr_response.cpp @@ -198,6 +198,19 @@ void CRR_Response::GetResponse( char *buf, size_t buflen ) const GetName( buf, buflen ); } + +#ifdef MAPBASE +//----------------------------------------------------------------------------- +// Purpose: +// Output : char const +//----------------------------------------------------------------------------- +void CRR_Response::GetRule( char *buf, size_t buflen ) const +{ + Q_strncpy( buf, m_szMatchingRule, buflen ); +} +#endif + + const char* ResponseRules::CRR_Response::GetNamePtr() const { return m_szResponseName;