Skip to content

Commit cb7a8dc

Browse files
committed
Added feature requested in #247
1 parent 3435c01 commit cb7a8dc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/core/modules/filters/filters_recipients.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class MRecipientFilter : public IRecipientFilter
108108
void RemoveAllPlayers();
109109
bool HasRecipient(int iPlayer);
110110

111-
private:
111+
public:
112112
bool m_bReliable;
113113
bool m_bInitMessage;
114114
#ifdef ENGINE_ORANGEBOX

src/core/modules/filters/filters_recipients_wrap.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ void export_mrecipientfilter(scope _recipients)
115115
"Return True if the given index is in the recipient filter.",
116116
args("index")
117117
)
118-
118+
119+
.def_readwrite("reliable",
120+
&MRecipientFilter::m_bReliable,
121+
"Get/set whether or not the filter is reliable.\n\n"
122+
":rtype: bool"
123+
)
119124

120125
ADD_MEM_TOOLS(MRecipientFilter)
121126
;

0 commit comments

Comments
 (0)