@@ -541,7 +541,7 @@ public RobotInfo[] senseNearbyRobots(MapLocation center, int radiusSquared, Team
541541 // bottom
542542 // left
543543 // corner
544- InternalRobot [] allSensedRobots = gameWorld .getAllRobotsWithinRadiusSquared (center , actualRadiusSquared , team );
544+ InternalRobot [] allSensedRobots = gameWorld .getAllRobotsWithinRadiusSquared (center , actualRadiusSquared , team , this . robot . getChirality () );
545545 List <RobotInfo > validSensedRobots = new ArrayList <>();
546546 for (InternalRobot sensedRobot : allSensedRobots ) {
547547 // check if this robot
@@ -599,7 +599,7 @@ public MapInfo[] senseNearbyMapInfos(MapLocation center, int radiusSquared) thro
599599 int actualRadiusSquared = radiusSquared == -1 ? this .getType ().visionConeRadiusSquared
600600 : Math .min (radiusSquared , this .getType ().visionConeRadiusSquared );
601601 MapLocation [] allSensedLocs = gameWorld .getAllLocationsWithinRadiusSquared (center ,
602- (int ) ((Math .sqrt (actualRadiusSquared ) + 2 ) * (Math .sqrt (actualRadiusSquared ) + 2 ))); // expand slightly
602+ (int ) ((Math .sqrt (actualRadiusSquared ) + 2 ) * (Math .sqrt (actualRadiusSquared ) + 2 )), this . robot . getChirality () ); // expand slightly
603603 // to allow
604604 // off-center
605605 // sensing
@@ -628,7 +628,7 @@ public MapLocation[] getAllLocationsWithinRadiusSquared(MapLocation center, int
628628 int actualRadiusSquared = radiusSquared == -1 ? this .robot .getVisionRadiusSquared ()
629629 : Math .min (radiusSquared , this .robot .getVisionRadiusSquared ());
630630 MapLocation [] possibleLocs = this .gameWorld .getAllLocationsWithinConeRadiusSquared (center ,
631- this .robot .getDirection (), this .robot .getVisionConeAngle (), actualRadiusSquared );
631+ this .robot .getDirection (), this .robot .getVisionConeAngle (), actualRadiusSquared , this . robot . getChirality () );
632632 List <MapLocation > visibleLocs = Arrays .asList (possibleLocs ).stream ().filter (x -> canSenseLocation (x ))
633633 .collect (Collectors .toList ());
634634 return visibleLocs .toArray (new MapLocation [visibleLocs .size ()]);
0 commit comments