diff --git a/desktop_version/src/CustomLevels.h b/desktop_version/src/CustomLevels.h index 8de6c189..8c84341d 100644 --- a/desktop_version/src/CustomLevels.h +++ b/desktop_version/src/CustomLevels.h @@ -1,7 +1,7 @@ #if !defined(NO_CUSTOM_LEVELS) -#ifndef EDITOR_H -#define EDITOR_H +#ifndef CUSTOMLEVELS_H +#define CUSTOMLEVELS_H #include #include @@ -307,20 +307,10 @@ class editorclass{ int currentghosts; }; -#if !defined(NO_EDITOR) -void editorrender(void); - -void editorrenderfixed(void); - -void editorlogic(void); - -void editorinput(void); -#endif - #ifndef ED_DEFINITION extern editorclass ed; #endif -#endif /* EDITOR_H */ +#endif /* CUSTOMLEVELS_H */ #endif /* NO_CUSTOM_LEVELS */ diff --git a/desktop_version/src/Editor.h b/desktop_version/src/Editor.h new file mode 100644 index 00000000..c5f68d20 --- /dev/null +++ b/desktop_version/src/Editor.h @@ -0,0 +1,16 @@ +#if !defined(NO_CUSTOM_LEVELS) && !defined(NO_EDITOR) + +#ifndef EDITOR_H +#define EDITOR_H + +void editorrender(void); + +void editorrenderfixed(void); + +void editorlogic(void); + +void editorinput(void); + +#endif /* EDITOR_H */ + +#endif /* NO_CUSTOM_LEVELS and NO_EDITOR */ diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index 25eff2de..f6b68663 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -2,6 +2,7 @@ #include "CustomLevels.h" #include "DeferCallbacks.h" +#include "Editor.h" #include "Enums.h" #include "Entity.h" #include "Exit.h"