Fix isolated cases that violate gcc's -Wignored-qualifiers

This commit is contained in:
Matthew Endsley 2012-07-02 16:11:20 -07:00
parent 7b065f5e0c
commit 7a2a4b24c1
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.
/// @return The maximum number of agents.
const int getAgentCount() const;
int getAgentCount() const;
/// Adds a new agent to the crowd.
/// @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;
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();

View File

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