Merge pull request #2 from mendsley/issue_ignored_qualifiers

Fix isolated cases that violate gcc's -Wignored-qualifiers
This commit is contained in:
Mikko Mononen 2013-09-16 13:51:15 -07:00
commit 5d3fd07074
3 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ public:
/// The maximum number of agents that can be managed by the object. /// The maximum number of agents that can be managed by the object.
/// @return The maximum number of agents. /// @return The maximum number of agents.
const int getAgentCount() const; int getAgentCount() const;
/// Adds a new agent to the crowd. /// Adds a new agent to the crowd.
/// @param[in] pos The requested position of the agent. [(x, y, z)] /// @param[in] pos The requested position of the agent. [(x, y, z)]

View File

@ -59,7 +59,7 @@ public:
int getItemCountAt(const int x, const int y) const; int getItemCountAt(const int x, const int y) const;
inline const int* getBounds() const { return m_bounds; } inline const int* getBounds() const { return m_bounds; }
inline const float getCellSize() const { return m_cellSize; } inline float getCellSize() const { return m_cellSize; }
}; };
dtProximityGrid* dtAllocProximityGrid(); dtProximityGrid* dtAllocProximityGrid();

View File

@ -474,7 +474,7 @@ const dtObstacleAvoidanceParams* dtCrowd::getObstacleAvoidanceParams(const int i
return 0; return 0;
} }
const int dtCrowd::getAgentCount() const int dtCrowd::getAgentCount() const
{ {
return m_maxAgents; return m_maxAgents;
} }