Commit bfa38981 authored by Timothy Stack's avatar Timothy Stack
Browse files

Argh, the obstacle size for the robot was too big.

parent 409607bb
......@@ -134,10 +134,10 @@ struct obstacle_node *ob_add_robot(struct robot_position *rp, int id)
* XXX We don't compute the actual bounding box, we just construct a square
* with the longest side of the robot.
*/
retval->on_natural.xmin = rp->x - ROBOT_OBSTACLE_SIZE;
retval->on_natural.ymin = rp->y - ROBOT_OBSTACLE_SIZE;
retval->on_natural.xmax = rp->x + ROBOT_OBSTACLE_SIZE;
retval->on_natural.ymax = rp->y + ROBOT_OBSTACLE_SIZE;
retval->on_natural.xmin = rp->x - ROBOT_OBSTACLE_SIZE / 2;
retval->on_natural.ymin = rp->y - ROBOT_OBSTACLE_SIZE / 2;
retval->on_natural.xmax = rp->x + ROBOT_OBSTACLE_SIZE / 2;
retval->on_natural.ymax = rp->y + ROBOT_OBSTACLE_SIZE / 2;
ob_expand_obstacle(&retval->on_expanded,
&retval->on_natural,
OBSTACLE_BUFFER);
......
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