#include "nil.qh"
#include "static.qh"
-#ifdef MENUQC
- #define NULL (0, null_entity)
- #define world NULL
-#else
- #define NULL (0, world)
-#endif
-
.vector origin;
.bool pure_data;
/** @deprecated use new_pure or NEW(class) */
if (pure) {
make_pure(this);
#ifdef CSQC
- setorigin(this, '0 0 10000');
+ setorigin(this, (world.mins + world.maxs) * 0.5);
#endif
#ifdef SVQC
- setorigin(this, '0 0 -10000');
+ setorigin(this, (world.mins + world.maxs) * 0.5);
#endif
}
return this;