]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/main.qc
Little off topic (fix spawnpoints attached to moving objects)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qc
index 05704e5cb4e4eaa4502a4ed010595476dea6a664..bcbe32bb9e6b189a90db26599f47aa1343a8ccdf 100644 (file)
@@ -20,7 +20,7 @@
 #include "t_items.qh"
 #include "wall.qh"
 #include "weapons/projectile.qh"
-#include "../common/deathtypes.qh"
+#include "../common/deathtypes/all.qh"
 #include "../common/items/all.qh"
 #include "../common/mapinfo.qh"
 #include "../common/minigames/cl_minigames.qh"
@@ -130,7 +130,7 @@ void CSQC_Init(void)
 
        // needs to be done so early because of the constants they create
        static_init();
-       CALL_ACCUMULATED_FUNCTION(RegisterDeathtypes);
+       static_init_late();
 
        // precaches
 
@@ -679,11 +679,11 @@ void Ent_ReadSpawnPoint(float is_new) // entity for spawnpoint
        spn_origin.y = ReadShort();
        spn_origin.z = ReadShort();
 
-       if(is_new)
-       {
+       //if(is_new)
+       //{
                self.origin = spn_origin;
                setsize(self, PL_MIN_CONST, PL_MAX_CONST);
-               droptofloor();
+               //droptofloor();
 
                /*if(autocvar_cl_spawn_point_model) // needs a model first
                {
@@ -712,7 +712,7 @@ void Ent_ReadSpawnPoint(float is_new) // entity for spawnpoint
 
                        self.draw = Spawn_Draw;
                }
-       }
+       //}
 
        //printf("Ent_ReadSpawnPoint(is_new = %d); origin = %s, team = %d, effect = %d\n", is_new, vtos(self.origin), teamnum, self.cnt);
 }