From e922fce0975c235762979e406754bb00b32fa85c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 24 Mar 2015 02:26:20 +0300 Subject: Fix compilation with some special flags. --- src/navigationmanager.cpp | 2 ++ src/navigationmanager.h | 2 ++ src/resources/resourcemanager.cpp | 4 ++++ 3 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/navigationmanager.cpp b/src/navigationmanager.cpp index a40f8c732..5df18013f 100644 --- a/src/navigationmanager.cpp +++ b/src/navigationmanager.cpp @@ -52,6 +52,7 @@ NavigationManager::~NavigationManager() { } +#ifndef DYECMD Resource *NavigationManager::loadWalkLayer(const Map *const map) { if (!map) @@ -77,6 +78,7 @@ Resource *NavigationManager::loadWalkLayer(const Map *const map) return walkLayer; } +#endif bool NavigationManager::findWalkableTile(int &x1, int &y1, const int width, const int height, diff --git a/src/navigationmanager.h b/src/navigationmanager.h index 392d5d584..b009f340e 100644 --- a/src/navigationmanager.h +++ b/src/navigationmanager.h @@ -37,7 +37,9 @@ class NavigationManager final ~NavigationManager(); +#ifndef DYECMD static Resource *loadWalkLayer(const Map *const map); +#endif private: static bool findWalkableTile(int &x1, int &y1, diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index f667569ce..a0efb224f 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -784,10 +784,14 @@ struct WalkLayerLoader final if (!v) return nullptr; +#ifdef DYECMD + return nullptr; +#else const WalkLayerLoader *const rl = static_cast(v); Resource *const resource = NavigationManager::loadWalkLayer(rl->map); return resource; +#endif } }; -- cgit v1.2.3-70-g09d2