Add option to allow custom levels when the editor is disabled

This commit is contained in:
Matt Penny
2020-02-09 21:21:19 -05:00
committed by Ethan Lee
parent 7d35c5ce4e
commit 1b00d12600
10 changed files with 59 additions and 27 deletions

View File

@@ -31,7 +31,7 @@
scriptclass script;
#if !defined(NO_EDITOR)
#if !defined(NO_CUSTOM_LEVELS)
edentities edentity[3000];
editorclass ed;
#endif
@@ -369,7 +369,7 @@ int main(int argc, char *argv[])
//Render
preloaderrender(graphics, game, help);
break;
#if !defined(NO_EDITOR)
#if !defined(NO_CUSTOM_LEVELS)
case EDITORMODE:
graphics.flipmode = false;
//Input
@@ -514,7 +514,7 @@ int main(int argc, char *argv[])
}
//Mute button
#if !defined(NO_EDITOR)
#if !defined(NO_CUSTOM_LEVELS)
bool inEditor = ed.textentry || ed.scripthelppage == 1;
#else
bool inEditor = false;