From: Mario Date: Sun, 26 Feb 2017 11:23:25 +0000 (+1000) Subject: Clear out an unnecessary switch X-Git-Tag: xonotic-v0.8.2~177 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b05d002939e9bd9980dbeaa60740207034ebf9b7;p=xonotic%2Fxonotic-data.pk3dir.git Clear out an unnecessary switch --- diff --git a/qcsrc/lib/warpzone/common.qc b/qcsrc/lib/warpzone/common.qc index 78d51cf0b..03248ec50 100644 --- a/qcsrc/lib/warpzone/common.qc +++ b/qcsrc/lib/warpzone/common.qc @@ -575,12 +575,9 @@ bool WarpZoneLib_BadEntity(entity e) { if (is_pure(e)) return true; string s = e.classname; - switch (s) - { - // case "net_linked": // actually some real entities are linked without classname, fail - case "": - return true; - } + + //if (s == "net_linked") return true; // actually some real entities are linked without classname, fail + if (s == "") return true; if (startsWith(s, "target_")) return true;