17 | this._min_x = N_x - this._search_range < min_freeform ? min_freeform : N_x - this._search_range;
| 17 | this._min_x = max(min_freeform, min(source_x, goal_x) - this._search_range);
|
---|
18 | this._min_y = N_y - this._search_range < min_freeform ? min_freeform : N_y - this._search_range;
| 18 | this._min_y = max(min_freeform, min(source_y, goal_y) - this._search_range);
|
---|
19 | this._max_x = S_x + this._search_range > AIMap.GetMapSizeX() - max_freeform ? AIMap.GetMapSizeX() - max_freeform : S_x + this._search_range;
| 19 | this._max_x = min(AIMap.GetMapSizeX() - max_freeform, max(source_x, goal_x) + this._search_range);
|
---|
20 | this._max_y = S_y + this._search_range > AIMap.GetMapSizeY() - max_freeform ? AIMap.GetMapSizeY() - max_freeform : S_y + this._search_range;
| 20 | this._max_y = max(AIMap.GetMapSizeY() - max_freeform, max(source_y, goal_y) + this._search_range);
|
---|
21 | }
| 21 | } |
---|
22 | } | | |
---|