Add '#if !defined(NO_EDITOR)' guards around editorinput/render/logic

These functions aren't needed in a NO_EDITOR build, so it's useful to
reduce the binary size this way.
This commit is contained in:
Misa
2020-06-19 15:23:28 -07:00
committed by Ethan Lee
parent 5c7e869ee7
commit c6e800db6f
3 changed files with 7 additions and 3 deletions

View File

@@ -2299,6 +2299,7 @@ void editorclass::generatecustomminimap()
}
}
#if !defined(NO_EDITOR)
void editormenurender(int tr, int tg, int tb)
{
switch (game.currentmenuname)
@@ -5594,6 +5595,7 @@ void editorinput()
}
}
}
#endif /* NO_EDITOR */
int editorclass::numtrinkets()
{