1
0
Fork 0

Doc: Change MapSize to Map::Size

pull/13347/head
SamuXarick 2025-01-20 12:26:41 +00:00 committed by rubidium42
parent 7da21379f0
commit 9bf882b3f7
1 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ static const int HEIGHT_DECIMAL_BITS = 4;
using Amplitude = int; using Amplitude = int;
static const int AMPLITUDE_DECIMAL_BITS = 10; static const int AMPLITUDE_DECIMAL_BITS = 10;
/** Height map - allocated array of heights (MapSizeX() + 1) x (MapSizeY() + 1) */ /** Height map - allocated array of heights (Map::SizeX() + 1) x (Map::SizeY() + 1) */
struct HeightMap struct HeightMap
{ {
std::vector<Height> h; //< array of heights std::vector<Height> h; //< array of heights
@ -312,7 +312,7 @@ static inline bool IsValidXY(int x, int y)
/** /**
* Allocate array of (MapSizeX()+1)*(MapSizeY()+1) heights and init the _height_map structure members * Allocate array of (Map::SizeX() + 1) * (Map::SizeY() + 1) heights and init the _height_map structure members
* @return true on success * @return true on success
*/ */
static inline bool AllocHeightMap() static inline bool AllocHeightMap()