]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a warning
authorRudolf Polzer <divverent@xonotic.org>
Mon, 5 Mar 2012 13:03:18 +0000 (14:03 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 5 Mar 2012 13:03:18 +0000 (14:03 +0100)
qcsrc/warpzonelib/server.qc

index 84cd20485ce566412629d9dfa714d63a8d51bdda..89c4b72b5f59b15df29024fa07507a3de314d40b 100644 (file)
@@ -372,7 +372,6 @@ float WarpZone_CheckProjectileImpact(entity player)
 
 float WarpZone_Projectile_Touch()
 {
-       float f;
        if(other.classname == "trigger_warpzone")
                return TRUE;
 
@@ -414,6 +413,7 @@ float WarpZone_Projectile_Touch()
                save_ent = trace_ent;
                save_inopen = trace_inopen;
                save_inwater = trace_inwater;
+               float f;
                if((f = WarpZone_CheckProjectileImpact(self)) != 0)
                        return (f > 0);
                trace_dpstartcontents = save_dpstartcontents;