mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-02 19:39:12 +00:00
Codechange: use std::span instead of hardcoding container
This commit is contained in:
@@ -198,7 +198,7 @@ struct BlobHarmonic
|
||||
* @param harmonics Harmonics data for the polygon.
|
||||
* @returns A star-shaped polygon.
|
||||
*/
|
||||
std::array<Point, GROVE_RESOLUTION> CreateStarShapedPolygon(const int radius, const std::array<BlobHarmonic, GROVE_HARMONICS_COUNT> harmonics)
|
||||
std::array<Point, GROVE_RESOLUTION> CreateStarShapedPolygon(const int radius, const std::span<const BlobHarmonic> harmonics)
|
||||
{
|
||||
std::array<Point, GROVE_RESOLUTION> result;
|
||||
|
||||
|
Reference in New Issue
Block a user