Merge pull request #35 from Janiels/master

Fix rcHeightfieldLayer comment and add virtual destructor to dtQueryFilter
This commit is contained in:
Mikko Mononen 2014-06-14 16:52:27 +03:00
commit 8004ee344e
2 changed files with 5 additions and 1 deletions

View File

@ -41,6 +41,10 @@ class dtQueryFilter
public: public:
dtQueryFilter(); dtQueryFilter();
#ifdef DT_VIRTUAL_QUERYFILTER
virtual ~dtQueryFilter() { }
#endif
/// Returns true if the polygon can be visited. (I.e. Is traversable.) /// Returns true if the polygon can be visited. (I.e. Is traversable.)
/// @param[in] ref The reference id of the polygon test. /// @param[in] ref The reference id of the polygon test.
/// @param[in] tile The tile containing the polygon. /// @param[in] tile The tile containing the polygon.

View File

@ -338,7 +338,7 @@ struct rcHeightfieldLayer
int maxy; ///< The maximum y-bounds of usable data. (Along the z-axis.) int maxy; ///< The maximum y-bounds of usable data. (Along the z-axis.)
int hmin; ///< The minimum height bounds of usable data. (Along the y-axis.) int hmin; ///< The minimum height bounds of usable data. (Along the y-axis.)
int hmax; ///< The maximum height bounds of usable data. (Along the y-axis.) int hmax; ///< The maximum height bounds of usable data. (Along the y-axis.)
unsigned char* heights; ///< The heightfield. [Size: (width - borderSize*2) * (h - borderSize*2)] unsigned char* heights; ///< The heightfield. [Size: width * height]
unsigned char* areas; ///< Area ids. [Size: Same as #heights] unsigned char* areas; ///< Area ids. [Size: Same as #heights]
unsigned char* cons; ///< Packed neighbor connection information. [Size: Same as #heights] unsigned char* cons; ///< Packed neighbor connection information. [Size: Same as #heights]
}; };