[rcssserver3d] Add a fix in rule enforcement code (upstream)

Hedayat Vatankhah hedayat at fedoraproject.org
Mon Jun 20 09:18:55 UTC 2011


commit db0f5c9a68b77ca29abc835ca2fa51da8a094b9f
Author: Hedayat Vatankhah <hedayat.fwd at gmail.com>
Date:   Mon Jun 20 13:45:16 2011 +0430

    Add a fix in rule enforcement code (upstream)

 rcssserver3d-0.6.5-rulefix.patch |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/rcssserver3d-0.6.5-rulefix.patch b/rcssserver3d-0.6.5-rulefix.patch
new file mode 100644
index 0000000..1ad7019
--- /dev/null
+++ b/rcssserver3d-0.6.5-rulefix.patch
@@ -0,0 +1,17 @@
+diff -up rcssserver3d-0.6.5/plugin/soccer/soccerruleaspect/soccerruleaspect.cpp.rulefix rcssserver3d-0.6.5/plugin/soccer/soccerruleaspect/soccerruleaspect.cpp
+--- rcssserver3d-0.6.5/plugin/soccer/soccerruleaspect/soccerruleaspect.cpp.rulefix	2011-06-20 11:54:46.512049841 +0430
++++ rcssserver3d-0.6.5/plugin/soccer/soccerruleaspect/soccerruleaspect.cpp	2011-06-20 11:54:59.743884418 +0430
+@@ -277,10 +277,11 @@ void SoccerRuleAspect::AnalyseTouchGroup
+     SoccerBase::TAgentStateList::iterator i = agent_states.begin();
+     for (; i != agent_states.end(); ++i)
+     {
+-        boost::shared_ptr<TouchGroup> touchGroup = (*i)->GetOldTouchGroup();
++        boost::shared_ptr<TouchGroup> touchGroup = (*i)->GetTouchGroup();
+ 
+         // Wasn't touching before, joined group making group too large
+-        if (touchGroup->size() == 1 && touchGroup->size() > mMaxTouchGroupSize)
++        if ((*i)->GetOldTouchGroup()->size() == 1 &&
++                touchGroup->size() > mMaxTouchGroupSize)
+         {
+             // determine the team that has more players in the touch group
+             int pl[3] = { 0 };


More information about the scm-commits mailing list