]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_teleporters.qc
add some test code for uri_post
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_teleporters.qc
index 26acf7f0ead9d4f59a5d2f5c1d8770afbf0ba3f3..eba0ea0681b3ee22edfcc378e7ca1c23f1027b17 100644 (file)
@@ -154,6 +154,9 @@ void Teleport_Touch (void)
        float p;
        string s;
 
+       if (self.active != ACTIVE_ACTIVE)
+               return;
+       
        if (other.health < 1)
                return;
        if not(other.flags & FL_CLIENT) // FIXME: Make missiles firable through the teleport too
@@ -292,7 +295,9 @@ void spawnfunc_trigger_teleport (void)
        self.angles = '0 0 0';
 
        EXACTTRIGGER_INIT;
-
+       
+       self.active = ACTIVE_ACTIVE;    
+       
        self.use = trigger_teleport_use;
 
        // this must be called to spawn the teleport waypoints for bots