From: Rudolf Polzer Date: Mon, 5 Mar 2012 13:03:18 +0000 (+0100) Subject: fix a warning X-Git-Tag: xonotic-v0.6.0~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a1583aefe18df9084bc5645c08d4d8f782e5be50;p=xonotic%2Fxonotic-data.pk3dir.git fix a warning --- diff --git a/qcsrc/warpzonelib/server.qc b/qcsrc/warpzonelib/server.qc index 84cd20485..89c4b72b5 100644 --- a/qcsrc/warpzonelib/server.qc +++ b/qcsrc/warpzonelib/server.qc @@ -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;