- move '#undef ALIGNED_FIELDGENS' into the right file (options.qh, not .qc)

- make the old "stuck in field" tests work when ALIGNED_FIELDGENS is defined.
This commit is contained in:
Adam Olsen 2001-07-30 20:21:44 +00:00
parent 8b38676806
commit 8a48b88387
3 changed files with 11 additions and 18 deletions

View File

@ -142,6 +142,7 @@ void() Field_think =
if (self.demon_one.fieldgen_status == FIELDGEN_ISWORKING)
Field_MakeVisual(self);
#ifdef ALIGNED_FIELDGENS
// checks for anything stuck in field :)
local entity te;
local float frange;
@ -160,26 +161,18 @@ void() Field_think =
if (te.velocity == '0 0 0')
// if (!IsBuilding(te)) // no screwing with the buildings :)
if (te.classname != "force_field")
#ifdef ALIGNED_FIELDGENS
if (EntsTouching2(te,self))
#else
# warning We do NOT have a test for being stuck in the field, so I am disabling it
if (0)
#endif
{
local entity foo;
foo = testentitypos (te);
if (foo == self)
{
other = te;
deathmsg = DMSG_STUCK_FORCEFIELD;
self.dmg = FIELDGEN_DMGINSIDE; // this gonna hurt
Field_touch_SUB();
}
}
te = te.chain;
}
#else
# warning We do NOT have a test for being stuck in the field, so I am disabling it
#endif
};
//=============================================================================================

View File

@ -12,7 +12,6 @@ Defines for the compilable options within TF.
//#define BOTS // doesn't do anything yet
//#define DEMO_STUFF
#define STATUSBAR
#undef ALIGNED_FIELDGENS
#pragma PROGS_DAT "qwprogs.dat"

View File

@ -12,6 +12,7 @@ Defines for the compilable options within TF.
//#define BOTS // doesn't do anything yet
//#define DEMO_STUFF
#define STATUSBAR
#undef ALIGNED_FIELDGENS
//#pragma PROGS_DAT "qwprogs.dat"