Merge pull request #180 from Janiels/more-text-and-warnings

Fix warnings and increase demo text pool size
This commit is contained in:
Jakob Botsch Nielsen 2016-02-16 13:20:47 +01:00
commit 8378805d35
2 changed files with 6 additions and 1 deletions

View File

@ -716,6 +716,8 @@ public:
void process(const dtMeshTile* tile, dtPoly** polys, dtPolyRef* refs, int count)
{
dtIgnoreUnused(polys);
for (int i = 0; i < count; ++i)
{
dtPolyRef ref = refs[i];
@ -914,6 +916,9 @@ public:
void process(const dtMeshTile* tile, dtPoly** polys, dtPolyRef* refs, int count)
{
dtIgnoreUnused(tile);
dtIgnoreUnused(polys);
int numLeft = m_maxPolys - m_numCollected;
int toCopy = count;
if (toCopy > numLeft)

View File

@ -28,7 +28,7 @@
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static const unsigned TEXT_POOL_SIZE = 8000;
static const unsigned TEXT_POOL_SIZE = 50000;
static char g_textPool[TEXT_POOL_SIZE];
static unsigned g_textPoolSize = 0;
static const char* allocText(const char* text)