X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fspawnpoints.qc;h=b86da6b54ee9f0823dec8d72f2a34d11de7f40b0;hb=125d619e9ab2a307b15b7ee1a2ededed32c7e84d;hp=253c70fbe071eff1be2f03a54c64bd18a7d06b58;hpb=77f03e6ce033bef39ac19e0e7cb6e606ffcb26db;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/spawnpoints.qc b/qcsrc/server/spawnpoints.qc index 253c70fbe..b86da6b54 100644 --- a/qcsrc/server/spawnpoints.qc +++ b/qcsrc/server/spawnpoints.qc @@ -1,21 +1,15 @@ -#if defined(CSQC) -#elif defined(MENUQC) -#elif defined(SVQC) - #include "../dpdefs/progsdefs.qh" - #include "../dpdefs/dpextensions.qh" - #include "../warpzonelib/util_server.qh" - #include "../common/constants.qh" - #include "../common/teams.qh" - #include "../common/util.qh" - #include "autocvars.qh" - #include "constants.qh" - #include "defs.qh" - #include "mutators/mutators_include.qh" - #include "spawnpoints.qh" - #include "race.qh" -#endif - -float SpawnPoint_Send(entity to, float sf) +#include "spawnpoints.qh" +#include "_all.qh" + +#include "mutators/mutators_include.qh" +#include "g_world.qh" +#include "race.qh" +#include "../common/constants.qh" +#include "../common/teams.qh" +#include "../common/util.qh" +#include "../warpzonelib/util_server.qh" + +float SpawnPoint_Send(entity to, int sf) { WriteByte(MSG_ENTITY, ENT_CLIENT_SPAWNPOINT); @@ -27,7 +21,7 @@ float SpawnPoint_Send(entity to, float sf) return true; } -float SpawnEvent_Send(entity to, float sf) +float SpawnEvent_Send(entity to, int sf) { float send; @@ -67,13 +61,13 @@ void relocate_spawnpoint() // nudge off the floor setorigin(self, self.origin + '0 0 1'); - tracebox(self.origin, PL_MIN, PL_MAX, self.origin, true, self); + tracebox(self.origin, PL_MIN_CONST, PL_MAX_CONST, self.origin, true, self); if (trace_startsolid) { vector o; o = self.origin; - self.mins = PL_MIN; - self.maxs = PL_MAX; + self.mins = PL_MIN_CONST; + self.maxs = PL_MAX_CONST; if (!move_out_of_solid(self)) objerror("could not get out of solid at all!"); print("^1NOTE: this map needs FIXING. Spawnpoint at ", vtos(o - '0 0 1'));