]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/gamemode_ctf.qc
Remove some unused code
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_ctf.qc
index 3ff0fc96c5609ee0541390c7fdc8fa4c7ca83a9b..f4d1c31cf3e3c276797933ebb92420774737f524 100644 (file)
@@ -814,8 +814,6 @@ void ctf_FlagTouch()
        
        entity toucher = other;
        
-       if(toucher.frozen) { return; }
-       
        // automatically kill the flag and return it if it touched lava/slime/nodrop surfaces
        if(ITEM_TOUCH_NEEDKILL())
        {
@@ -825,7 +823,8 @@ void ctf_FlagTouch()
        }
        
        // special touch behaviors
-       if(toucher.vehicle_flags & VHF_ISVEHICLE)
+       if(toucher.frozen) { return; }
+       else if(toucher.vehicle_flags & VHF_ISVEHICLE)
        {
                if(autocvar_g_ctf_allow_vehicle_touch)
                        toucher = toucher.owner; // the player is actually the vehicle owner, not other