Skip to content

Commit 7e32d3c

Browse files
committed
Use grSim_RobotReplacement::yellowteam to determine the team for RobotReplacement
1 parent 8d3b8c7 commit 7e32d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sslworld.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ void SSLWorld::recvActions() {
613613
if (grSimPacket.has_replacement()) {
614614
for (int i=0; i < grSimPacket.replacement().robots_size(); i++) {
615615
int team = 0;
616-
if (grSimPacket.commands().has_isteamyellow() && grSimPacket.commands().isteamyellow()) team = 1;
616+
if (grSimPacket.replacement().robots(i).has_yellowteam() && grSimPacket.replacement().robots(i).yellowteam()) team = 1;
617617

618618
if (!grSimPacket.replacement().robots(i).has_id()) continue;
619619
int k = grSimPacket.replacement().robots(i).id();

0 commit comments

Comments
 (0)