fix loading of empty file (after header)
remove debug printf
This commit is contained in:
@@ -128,6 +128,9 @@ void btBulletFile::parseData()
|
|||||||
mDataStart = 12;
|
mDataStart = 12;
|
||||||
remain-=12;
|
remain-=12;
|
||||||
|
|
||||||
|
//invalid/empty file?
|
||||||
|
if (remain < sizeof(bChunkInd))
|
||||||
|
return;
|
||||||
|
|
||||||
char *dataPtr = mFileBuffer+mDataStart;
|
char *dataPtr = mFileBuffer+mDataStart;
|
||||||
|
|
||||||
|
|||||||
@@ -184,7 +184,6 @@ public:
|
|||||||
// return non-null if there is a status, nullptr otherwise
|
// return non-null if there is a status, nullptr otherwise
|
||||||
virtual const struct SharedMemoryStatus* processServerStatus()
|
virtual const struct SharedMemoryStatus* processServerStatus()
|
||||||
{
|
{
|
||||||
printf("updating graphics!\n");
|
|
||||||
m_physicsServerExample->updateGraphics();
|
m_physicsServerExample->updateGraphics();
|
||||||
|
|
||||||
unsigned long long int curTime = m_clock.getTimeMicroseconds();
|
unsigned long long int curTime = m_clock.getTimeMicroseconds();
|
||||||
|
|||||||
Reference in New Issue
Block a user