mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
Rename LUNATIC_ENABLE macro to just LUNATIC.
git-svn-id: https://svn.eduke32.com/eduke32@2721 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f3c009b146
commit
ae15643a73
4 changed files with 8 additions and 8 deletions
|
@ -152,7 +152,7 @@ ifneq (0,$(LUNATIC))
|
|||
else
|
||||
OURCFLAGS+= -I/usr/local/include/luajit-2.0
|
||||
endif
|
||||
OURCFLAGS+= -I$(SRC)/lunatic -DLUNATIC_ENABLE
|
||||
OURCFLAGS+= -I$(SRC)/lunatic -DLUNATIC
|
||||
|
||||
ifeq ($(PLATFORM),WINDOWS)
|
||||
LIBS+= -LWindows/lib -lluajit
|
||||
|
|
|
@ -53,7 +53,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "demo.h"
|
||||
#include "common.h"
|
||||
|
||||
#ifdef LUNATIC_ENABLE
|
||||
#ifdef LUNATIC
|
||||
# include "lunatic.h"
|
||||
#endif
|
||||
|
||||
|
@ -167,7 +167,7 @@ char **g_clipMapFiles = NULL;
|
|||
int32_t g_clipMapFilesNum = 0;
|
||||
#endif
|
||||
|
||||
#ifdef LUNATIC_ENABLE
|
||||
#ifdef LUNATIC
|
||||
El_State g_ElState;
|
||||
#endif
|
||||
|
||||
|
@ -10482,7 +10482,7 @@ CLEAN_DIRECTORY:
|
|||
|
||||
OSD_Exec("autoexec.cfg");
|
||||
|
||||
#ifdef LUNATIC_ENABLE
|
||||
#ifdef LUNATIC
|
||||
i = El_CreateState(&g_ElState, "test");
|
||||
if (i)
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "osd.h"
|
||||
#include "menus.h"
|
||||
|
||||
#ifdef LUNATIC_ENABLE
|
||||
#ifdef LUNATIC
|
||||
# include "lunatic.h"
|
||||
extern El_State g_ElState; // this needs to go into a header sometime
|
||||
#endif
|
||||
|
@ -96,7 +96,7 @@ void VM_ScriptInfo(void)
|
|||
// May recurse, e.g. through EVENT_XXX -> ... -> EVENT_KILLIT
|
||||
int32_t VM_OnEvent(int32_t iEventID, int32_t iActor, int32_t iPlayer, int32_t lDist, int32_t iReturn)
|
||||
{
|
||||
#ifdef LUNATIC_ENABLE
|
||||
#ifdef LUNATIC
|
||||
if (El_IsInitialized(&g_ElState))
|
||||
El_CallEvent(&g_ElState, iEventID);
|
||||
#endif
|
||||
|
|
|
@ -36,7 +36,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef LUNATIC_ENABLE
|
||||
#ifdef LUNATIC
|
||||
# include "lunatic.h"
|
||||
extern El_State g_ElState;
|
||||
#endif
|
||||
|
@ -1450,7 +1450,7 @@ static inline void prelevel(char g)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef LUNATIC_ENABLE
|
||||
#ifdef LUNATIC
|
||||
if (El_IsInitialized(&g_ElState))
|
||||
{
|
||||
i = El_RunOnce(&g_ElState, "test.elua");
|
||||
|
|
Loading…
Reference in a new issue