diff options
| author | Ray <[email protected]> | 2021-12-08 11:01:41 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-12-08 11:01:41 +0100 |
| commit | ed1e1f35df3018bd159d240e579b4e88f9b6aac7 (patch) | |
| tree | d8904129ddc574fb8ffb2b4a55a732bb9a496d3f /src | |
| parent | 7d25480723cfabbc0ab9994ac2b99df676bada41 (diff) | |
| download | raylib-ed1e1f35df3018bd159d240e579b4e88f9b6aac7.tar.gz raylib-ed1e1f35df3018bd159d240e579b4e88f9b6aac7.zip | |
REVIEWED: GenImageCellular() #2178
Diffstat (limited to 'src')
| -rw-r--r-- | src/rtextures.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtextures.c b/src/rtextures.c index 4269f68f..f4ff272c 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -775,7 +775,7 @@ Image GenImageCellular(int width, int height, int tileSize) { int y = (i/seedsPerRow)*tileSize + GetRandomValue(0, tileSize - 1); int x = (i%seedsPerRow)*tileSize + GetRandomValue(0, tileSize - 1); - seeds[i] = (Vector2){ (float)x, (float)y}; + seeds[i] = (Vector2){ (float)x, (float)y }; } for (int y = 0; y < height; y++) @@ -786,7 +786,7 @@ Image GenImageCellular(int width, int height, int tileSize) { int tileX = x/tileSize; - float minDistance = (float)strtod("Inf", NULL); + float minDistance = 65536.0f; //(float)strtod("Inf", NULL); // Check all adjacent tiles for (int i = -1; i < 2; i++) |
