From b05d002939e9bd9980dbeaa60740207034ebf9b7 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 26 Feb 2017 21:23:25 +1000 Subject: [PATCH] Clear out an unnecessary switch --- qcsrc/lib/warpzone/common.qc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; -- 2.39.2