Changeset 412


Ignore:
Timestamp:
05/05/2010 02:53:56 PM (11 years ago)
Author:
michael.kriegel
Message:

make sure nearby agents are only added if they are not already in the list (migration related problem)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/Agent.java

    r396 r412  
    227227        public void AddNearByAgent(String agent) 
    228228        { 
    229                 if(!agent.equals(this._name)) 
     229                if(!agent.equals(this._name) && !_nearbyAgents.contains(agent)) 
    230230                { 
    231231                        this._nearbyAgents.add(agent); 
Note: See TracChangeset for help on using the changeset viewer.