~rebel/horde3d/trunk

« back to all changes in this revision

Viewing changes to trunk/Tools/GameEngine/src/GameDetourComponent/SampleInterfaces.cpp

  • Committer: felix
  • Date: 2015-07-07 12:57:07 UTC
  • Revision ID: svn-v4:5ce291ac-9df0-446f-9e4f-d57731c4dda7::1699
- Updated RecastNavigation to latest version and fixed multiple issues.
- Adapted GameDetourComponent, GameDetourCrowdComponent, DetourCrowdDemo and AAA accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
//#include "SDL.h"
11
11
//#include "SDL_opengl.h"
12
12
#include "GLFW/glfw.h"
13
 
#include <string.h>
 
13
#include <memory.h>
14
14
 
15
15
// The SDL includes of this file were replaced with GLFW for the Horde3D+GLFW RecastNavigationDemo project.
16
16
// Roland Beck 2012
318
318
bool FileIO::read(void* ptr, const size_t size)
319
319
{
320
320
        if (!m_fp || m_mode != 2) return false;
321
 
        fread(ptr, size, 1, m_fp);
322
 
        return true;
 
321
        size_t readLen = fread(ptr, size, 1, m_fp);
 
322
        return readLen == 1;
323
323
}
324
324
 
325
325