From 6f3f2eb1b8bf4b69818ed8979b83fe3cfa0c8fb6 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 31 Oct 2012 15:03:33 +0000 Subject: [PATCH] Hopefully fix the projectile breakage, and add some predefined names for working with the built in statnums git-svn-id: https://svn.eduke32.com/eduke32@3105 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 20bf03501..a2e0fb118 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -5725,6 +5725,22 @@ static void C_AddDefaultDefinitions(void) C_AddDefinition(tempbuf, i, LABEL_DEFINE); } + C_AddDefinition("STAT_DEFAULT", STAT_DEFAULT, LABEL_DEFINE); + C_AddDefinition("STAT_ACTOR", STAT_ACTOR, LABEL_DEFINE); + C_AddDefinition("STAT_ZOMBIEACTOR", STAT_ZOMBIEACTOR, LABEL_DEFINE); + C_AddDefinition("STAT_EFFECTOR", STAT_EFFECTOR, LABEL_DEFINE); + C_AddDefinition("STAT_PROJECTILE", STAT_PROJECTILE, LABEL_DEFINE); + C_AddDefinition("STAT_MISC", STAT_MISC, LABEL_DEFINE); + C_AddDefinition("STAT_STANDABLE", STAT_STANDABLE, LABEL_DEFINE); + C_AddDefinition("STAT_LOCATOR", STAT_LOCATOR, LABEL_DEFINE); + C_AddDefinition("STAT_ACTIVATOR", STAT_ACTIVATOR, LABEL_DEFINE); + C_AddDefinition("STAT_TRANSPORT", STAT_TRANSPORT, LABEL_DEFINE); + C_AddDefinition("STAT_PLAYER", STAT_PLAYER, LABEL_DEFINE); + C_AddDefinition("STAT_FX", STAT_FX, LABEL_DEFINE); + C_AddDefinition("STAT_FALLER", STAT_FALLER, LABEL_DEFINE); + C_AddDefinition("STAT_DUMMYPLAYER", STAT_DUMMYPLAYER, LABEL_DEFINE); + C_AddDefinition("STAT_LIGHT", STAT_LIGHT, LABEL_DEFINE); + C_AddDefinition("SFLAG_SHADOW", SPRITE_SHADOW, LABEL_DEFINE); C_AddDefinition("SFLAG_NVG", SPRITE_NVG, LABEL_DEFINE); C_AddDefinition("SFLAG_NOSHADE", SPRITE_NOSHADE, LABEL_DEFINE); @@ -5828,6 +5844,9 @@ void C_Compile(const char *filenam) Bmemset(apScriptGameEvent, 0, sizeof(apScriptGameEvent)); + for (i=MAXTILES-1; i>=0; i--) + Bmemset(&g_tile[i], 0, sizeof(tiledata_t)); + C_InitHashes(); Gv_Init(); C_InitProjectiles(); @@ -5904,9 +5923,6 @@ void C_Compile(const char *filenam) kread(fp,(char *)textptr,fs); kclose(fp); - for (i=MAXTILES-1; i>=0; i--) - Bmemset(&g_tile[i], 0, sizeof(tiledata_t)); - if (script != NULL) Bfree(script);