DoN's 3D Pathfinding for Flying A.I. [Support Thread]

Issue compiling for other platforms.

Hey there,

Just wanted to quickly report a code issue:

In DonNavigationCommon.h you have the following include:


    #include "AllowWindowsPlatformTypes.h"

However this fails to compile on other platforms (Specifically XBONE for me) as that header does not exist on the platform.
So I’ve changed it to the following:


    #if PLATFORM_WINDOWS
    #include "AllowWindowsPlatformTypes.h"
    #elif PLATFORM_XBOXONE
    #include "XboxOneAllowPlatformTypes.h"
    #endif

And I’ve also changed the other #ifdef from _WIN32 to:


   #if PLATFORM_WINDOWS || PLATFORM_XBOXONE

(for consistency)

Hope that makes sense. :slight_smile: