From 5fe2baa088e06f07601064b0ef2ca5286dd9b4f4 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 18 Jan 2018 23:10:23 +1000 Subject: [PATCH] Undo last attempt --- qcsrc/common/physics/player.qc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index ae8ffa3fe..20c580a85 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -7,20 +7,10 @@ #include #include "../triggers/trigger/viewloc.qh" -bool Physics_HasWord(string thelist, string theword) -{ - FOREACH_WORD(thelist, it == theword, - { - return true; - }); - - return false; -} - // client side physics bool Physics_Valid(string thecvar) { - return autocvar_g_physics_clientselect && thecvar != "" && thecvar && thecvar != "default" && Physics_HasWord(autocvar_g_physics_clientselect_options, thecvar); + return autocvar_g_physics_clientselect && thecvar != "" && thecvar && thecvar != "default" && strhasword(autocvar_g_physics_clientselect_options, thecvar); } float Physics_ClientOption(entity this, string option, float defaultval) -- 2.39.2