Commit cc741d52 authored by Ryosuke Suzuki's avatar Ryosuke Suzuki
Browse files

Merge branch 'modify_subscriber' into 'develop'

complete

See merge request !4
parents b6aaede1 c26a7378
...@@ -13,7 +13,7 @@ public class CentralizedControlChannelSubscriber extends ChannelSubscriber { ...@@ -13,7 +13,7 @@ public class CentralizedControlChannelSubscriber extends ChannelSubscriber {
public void subscribe(AgentInfo agentInfo, WorldInfo worldInfo, public void subscribe(AgentInfo agentInfo, WorldInfo worldInfo,
ScenarioInfo scenarioInfo, MessageManager messageManager) { ScenarioInfo scenarioInfo, MessageManager messageManager) {
// subscribe only once at the beginning // subscribe only once at the beginning
if (agentInfo.getTime() == 1) { if (agentInfo.getTime() == scenarioInfo.getKernelAgentsIgnoreuntil()) {
int numChannels = scenarioInfo.getCommsChannelsCount() - 1; // 0th channel int numChannels = scenarioInfo.getCommsChannelsCount() - 1; // 0th channel
// is the // is the
// voice // voice
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment